Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021411Openbravo ERPA. Platformpublic2012-08-22 10:302012-08-24 13:35
naiaramartinez 
AugustoMauch 
normalminoralways
closedfixed 
5
 
3.0MP15 
marvintm
Core
No
0021411: Child tabs don't be refreshed when their parent tab is modified
When you modify any child tab its parent tab gets refreshed. But when you modify parent tab its childs don't get refreshed.

Imagine that you have a display logic in child tab depending on value of a field in parent tab. If you change that value in parent tab you need to refresh manually child tab in order to display o not the field in child tab.
Go to Sales invoice and create new header and new line.
Then go back to the header. Change any value and save it. Notice that only the header is refreshed.

Go back to newly created line, modify it and save it. Notice that the line and the header are refreshed.
No tags attached.
Issue History
2012-08-22 10:30naiaramartinezNew Issue
2012-08-22 10:30naiaramartinezAssigned To => alostale
2012-08-22 10:30naiaramartinezModules => Core
2012-08-22 11:04hgbotCheckin
2012-08-22 11:04hgbotNote Added: 0051452
2012-08-22 11:04hgbotStatusnew => resolved
2012-08-22 11:04hgbotResolutionopen => fixed
2012-08-22 11:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8a09d93b41496bc5807578323ba0a7677ba3219f [^]
2012-08-22 11:05AugustoMauchNote Added: 0051453
2012-08-22 11:05AugustoMauchStatusresolved => new
2012-08-22 11:05AugustoMauchResolutionfixed => open
2012-08-22 11:05AugustoMauchAssigned Toalostale => AugustoMauch
2012-08-22 11:05AugustoMauchClosed by => marvintm
2012-08-22 11:05AugustoMauchStatusnew => scheduled
2012-08-22 11:05AugustoMauchfix_in_branch => pi
2012-08-22 11:05AugustoMauchStatusscheduled => resolved
2012-08-22 11:05AugustoMauchResolutionopen => fixed
2012-08-24 08:33marvintmNote Added: 0051521
2012-08-24 08:33marvintmStatusresolved => new
2012-08-24 08:33marvintmResolutionfixed => open
2012-08-24 12:10hgbotCheckin
2012-08-24 12:10hgbotNote Added: 0051530
2012-08-24 12:10hgbotStatusnew => resolved
2012-08-24 12:10hgbotResolutionopen => fixed
2012-08-24 12:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/8a09d93b41496bc5807578323ba0a7677ba3219f [^] => http://code.openbravo.com/erp/devel/pi/rev/439b1eac8cae8049e12f93112049fe6dcaa24ff9 [^]
2012-08-24 13:35marvintmStatusresolved => closed
2012-08-24 13:35marvintmFixed in Version => 3.0MP15

Notes
(0051452)
hgbot   
2012-08-22 11:04   
Repository: erp/devel/pi
Changeset: 8a09d93b41496bc5807578323ba0a7677ba3219f
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Aug 22 11:03:59 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8a09d93b41496bc5807578323ba0a7677ba3219f [^]

Fixes issue 21411: Child views are refreshed when saving a form

Before the fix, the child views were only refreshed when the record that was saved was new. Now, it does it always.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0051453)
AugustoMauch   
2012-08-22 11:05   
Reopened to enter Closed by field
(0051521)
marvintm   
2012-08-24 08:33   
The child tabs are indeed refreshed. However, if there is already a child record selected, this selection is lost when the parent is changed, and this can be very annoying for the user.

Maybe the child selection can be saved somehow before refreshing the tab, and then recovered? Probably something similar to this is done when refreshing the parent after a child has been modified.
(0051530)
hgbot   
2012-08-24 12:10   
Repository: erp/devel/pi
Changeset: 439b1eac8cae8049e12f93112049fe6dcaa24ff9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Aug 24 12:08:02 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/439b1eac8cae8049e12f93112049fe6dcaa24ff9 [^]

Fixes issue 21411: Selected records are preserved when refreshing child views

Now, when a record is saved, its child tabs will be refreshed preserving the selection of the records.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---