Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029092Openbravo ERPA. Platformpublic2015-02-27 13:462015-03-13 11:34
caristu 
AugustoMauch 
highmajoralways
closedfixed 
5
pi 
3.0PR15Q23.0PR15Q3 
alostale
Core
No
0029092: Data is not refreshed in form view after changing it with a trigger
Data is not refreshed in form view after changing it with a trigger
1) Go to the [Sales Invoice] window and create a new record in the header
2) Navigate to the [Lines] tab an create a new line.
3) Open the [Lines Tax] tab under the [Lines] tab, in grid view
4) Back in the [Lines] tab, change the tax for the new line. Notice that the record in the [Lines Tax] is correctly refreshed
5) Open the record in [Lines Tax] in form view
6) Back in the [Lines] tab, change the tax for the new line. Notice that the refresh in the [Lines Tax] is done, but the data is not updated
No tags attached.
related to defect 0023762 acknowledged Triage Platform Base Child form is not properly refreshed when its parent record is updated 
related to defect 0029110 closed AtulOpenbravo It is not possible to change currency in header tab in G/L Journal 
related to defect 0031901 closed caristu decimal value can't be changed by trigger/observer after manual edition in form view 
Issue History
2015-02-27 13:46caristuNew Issue
2015-02-27 13:46caristuAssigned To => AugustoMauch
2015-02-27 13:46caristuModules => Core
2015-02-27 13:46caristuRegression date => 2015-04-01
2015-02-27 13:46caristuTriggers an Emergency Pack => No
2015-02-27 13:46caristuIssue Monitored: networkb
2015-02-27 13:51caristuResolution time => 1427839200
2015-02-27 13:51caristuRegression date2015-04-01 =>
2015-03-02 15:15alostaleStatusnew => acknowledged
2015-03-10 09:23AugustoMauchStatusacknowledged => scheduled
2015-03-11 15:40alostaleStatusscheduled => acknowledged
2015-03-11 15:40alostaleRelationship addedrelated to 0023762
2015-03-12 09:28AugustoMauchStatusacknowledged => scheduled
2015-03-12 09:38aferrazRelationship addedrelated to 0029110
2015-03-12 10:42AugustoMauchIssue Monitored: alostale
2015-03-12 10:42AugustoMauchReview Assigned To => alostale
2015-03-12 10:46hgbotCheckin
2015-03-12 10:46hgbotNote Added: 0075472
2015-03-12 10:46hgbotStatusscheduled => resolved
2015-03-12 10:46hgbotResolutionopen => fixed
2015-03-12 10:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e282c64e6e90bc928e054f2b1631cfa4030d58d9 [^]
2015-03-12 10:49AugustoMauchNote Added: 0075473
2015-03-13 03:18hudsonbotCheckin
2015-03-13 03:18hudsonbotNote Added: 0075512
2015-03-13 11:34alostaleNote Added: 0075534
2015-03-13 11:34alostaleStatusresolved => closed
2015-03-13 11:34alostaleFixed in Version => 3.0PR15Q3
2016-01-19 11:10alostaleRelationship addedrelated to 0031901

Notes
(0075472)
hgbot   
2015-03-12 10:46   
Repository: erp/devel/pi
Changeset: e282c64e6e90bc928e054f2b1631cfa4030d58d9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 12 10:39:35 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e282c64e6e90bc928e054f2b1631cfa4030d58d9 [^]

Fixes issue 29092: Inconsistent data is not shown in the form view

This issue was reproduced in the following scenario:
- A subtab is open in form view
- A change is done in its parent tab. That change (either through an event handler or through a trigger) deletes the record selected in the subtab and creates a new one
- The subtab is automatically refreshed. When the tab is refreshed:
    * The whole grid is reloaded, it now contains all the current records
    * The form view is shown again, and it tries to obtain the updated records from the grid. As the record selected in the form view is not present in the grid, the form view contains the old values

To fix this, when the record that was selected in the form view is no longer contained in the grid after the tab is refreshed, the form view is not shown. This was the grid view will be visible, and it will show the updated info.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0075473)
AugustoMauch   
2015-03-12 10:49   
Test plan:
- Checked that the original issue is no longer reproducible
- Checked that refreshing a parent tab having its child tab showing the form view works as usual under normal circumstances (that is, when saving the parent tab does not trigger the deletion of the record selected in the child tab)
(0075512)
hudsonbot   
2015-03-13 03:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6f599d5217c4 [^]
Maturity status: Test
(0075534)
alostale   
2015-03-13 11:34   
code reviewed

tested following test plan described avobe