Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020328Openbravo ERPA. Platformpublic2012-04-23 13:252012-10-11 14:34
plujan 
AugustoMauch 
lowminorsometimes
closedfixed 
20
main 
3.0MP17 
dbaz
Mozilla Firefox
Core
No
0020328: Sometimes it is possible to trigger an incomplete autosave
When creating a Sales Invoice header on grid, sometimes when I switch to Lines the Business Partner gets selected but an error is shown regarding a missing Location.
Open Sales Invoice window.
Create a new Header in Grid mode
As expected, focus moves to Business Partner.
Select a Business Partner from the drop down list and then click the Lines tab to focus it.
The line is not saved (1 out of 10 times aprox) since Location could not be set.
No tags attached.
diff issue20328.diff (1,112) 2012-10-04 18:18
https://issues.openbravo.com/file_download.php?file_id=5639&type=bug
Issue History
2012-04-23 13:25plujanNew Issue
2012-04-23 13:25plujanAssigned To => AugustoMauch
2012-04-23 13:25plujanWeb browser => Mozilla Firefox
2012-04-23 13:25plujanModules => Core
2012-10-04 18:18AugustoMauchFile Added: issue20328.diff
2012-10-04 18:19AugustoMauchStatusnew => scheduled
2012-10-04 18:19AugustoMauchfix_in_branch => pi
2012-10-08 18:07hgbotCheckin
2012-10-08 18:07hgbotNote Added: 0053123
2012-10-08 18:07hgbotStatusscheduled => resolved
2012-10-08 18:07hgbotResolutionopen => fixed
2012-10-08 18:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c7d6d5cabd78468fc51542479d4a036d51f82a3d [^]
2012-10-08 18:08AugustoMauchNote Added: 0053124
2012-10-08 18:08AugustoMauchStatusresolved => new
2012-10-08 18:08AugustoMauchResolutionfixed => open
2012-10-08 18:08AugustoMauchStatusnew => scheduled
2012-10-08 18:08AugustoMauchIssue Monitored: dbaz
2012-10-08 18:09AugustoMauchReview Assigned To => dbaz
2012-10-08 18:09AugustoMauchWeb browserMozilla Firefox => Mozilla Firefox
2012-10-08 18:09AugustoMauchfix_in_branchpi =>
2012-10-08 18:09AugustoMauchStatusscheduled => resolved
2012-10-08 18:09AugustoMauchResolutionopen => fixed
2012-10-09 13:14dbazNote Added: 0053167
2012-10-09 13:14dbazStatusresolved => new
2012-10-09 13:14dbazResolutionfixed => open
2012-10-10 11:34hgbotCheckin
2012-10-10 11:34hgbotNote Added: 0053198
2012-10-10 11:34hgbotStatusnew => resolved
2012-10-10 11:34hgbotResolutionopen => fixed
2012-10-10 11:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c7d6d5cabd78468fc51542479d4a036d51f82a3d [^] => http://code.openbravo.com/erp/devel/pi/rev/f218a3d70f90ad1e08814c0304e23d3e16b4967c [^]
2012-10-11 07:50hudsonbotCheckin
2012-10-11 07:50hudsonbotNote Added: 0053266
2012-10-11 07:51hudsonbotCheckin
2012-10-11 07:51hudsonbotNote Added: 0053292
2012-10-11 14:34dbazNote Added: 0053308
2012-10-11 14:34dbazStatusresolved => closed
2012-10-11 14:34dbazFixed in Version => 3.0MP17

Notes
(0053123)
hgbot   
2012-10-08 18:07   
Repository: erp/devel/pi
Changeset: c7d6d5cabd78468fc51542479d4a036d51f82a3d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Oct 08 18:03:20 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c7d6d5cabd78468fc51542479d4a036d51f82a3d [^]

Fixes issue 20328: The autosave is not done until receiving the FIC response

If an autosave is executed while waiting for a FIC response, the data saved is not the definitive, and might be invalid or incomplete.

When that happens, the actual save will be postponed until the FIC response is received, the same done it is done when the saveRow function is executed.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
(0053124)
AugustoMauch   
2012-10-08 18:08   
Reopened to enter closed by field
(0053167)
dbaz   
2012-10-09 13:14   
If you do the steps to reproduce very fast (the step to switch to lines), I can still reproduce the issue
(0053198)
hgbot   
2012-10-10 11:34   
Repository: erp/devel/pi
Changeset: f218a3d70f90ad1e08814c0304e23d3e16b4967c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Oct 10 11:32:37 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f218a3d70f90ad1e08814c0304e23d3e16b4967c [^]

Fixes issue 20328: Sometimes it is possible to trigger an incomplete autosave

The previous approach used to fix this issue not only did not work in the grid view, but it was not completely correct in the form view. If we allowed to move to the child tab before saving the parent tab, we would be enabling to create a child record, which would fail if the parent record has not been saved yet.

The new approach is to not allow to change the active tab at all until the currently focused tab can be saved (that is, until it has received the FIC response).

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
(0053266)
hudsonbot   
2012-10-11 07:50   
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/63dfc135f2a1 [^]

Maturity status: Test
(0053292)
hudsonbot   
2012-10-11 07:51   
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/63dfc135f2a1 [^]

Maturity status: Test
(0053308)
dbaz   
2012-10-11 14:34   
Reviewed @ changeset: 18201 - d5a54ef8d574