Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020544Openbravo ERPA. Platformpublic2012-05-18 08:272012-05-28 10:13
jecharri 
guilleaer 
highminorrandom
closedfixed 
5
pi 
3.0MP143.0MP12 
Google Chrome
Core
No
0020544: Default values sometimes fail to load
Default values sometimes fail to load.

As "System" display the field dateordered in "sales order" lines.
As "Group Admin" go to "Sales Order" window and create a Header.
Go to lines tab:
-create a record in grid with tollbar button (insert a product)
-without save, push in new record in form (insert a product)
-without save, push in new record in form (insert a product)
-...

Sometimes, "Order Date" field value does not load correctly. The default value for this field is the header field "Order date".

I have attached 2 images where I have reproduced the problem in live
No tags attached.
png dateordered.png (151,166) 2012-05-18 08:27
https://issues.openbravo.com/file_download.php?file_id=5242&type=bug
png

png dateordered2.png (161,959) 2012-05-18 08:28
https://issues.openbravo.com/file_download.php?file_id=5243&type=bug
png

log dateordered.log (18,584) 2012-05-18 08:39
https://issues.openbravo.com/file_download.php?file_id=5244&type=bug
Issue History
2012-05-18 08:27jecharriNew Issue
2012-05-18 08:27jecharriAssigned To => alostale
2012-05-18 08:27jecharriFile Added: dateordered.png
2012-05-18 08:27jecharriWeb browser => Google Chrome
2012-05-18 08:27jecharriModules => Core
2012-05-18 08:27jecharriResolution time => 1344031200
2012-05-18 08:28jecharriFile Added: dateordered2.png
2012-05-18 08:30jecharriWeb browserGoogle Chrome => Google Chrome
2012-05-18 08:30jecharriSummaryDefault values sometimes fail => Default values sometimes fail to load
2012-05-18 08:30jecharriDescription Updatedbug_revision_view_page.php?rev_id=3485#r3485
2012-05-18 08:30jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3487#r3487
2012-05-18 08:39jecharriFile Added: dateordered.log
2012-05-23 15:31alostaleAssigned Toalostale => guilleaer
2012-05-24 18:04hgbotCheckin
2012-05-24 18:04hgbotNote Added: 0048923
2012-05-24 18:04hgbotStatusnew => resolved
2012-05-24 18:04hgbotResolutionopen => fixed
2012-05-24 18:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/af4557ab55b27f078145027e89d46d4ee744c106 [^]
2012-05-24 18:17guilleaerNote Added: 0048924
2012-05-25 12:13hudsonbotCheckin
2012-05-25 12:13hudsonbotNote Added: 0049208
2012-05-28 10:13alostaleNote Added: 0049339
2012-05-28 10:13alostaleStatusresolved => closed
2012-05-28 10:13alostaleFixed in Version => 3.0MP12

Notes
(0048923)
hgbot   
2012-05-24 18:04   
Repository: erp/devel/pi
Changeset: af4557ab55b27f078145027e89d46d4ee744c106
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu May 24 18:00:18 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/af4557ab55b27f078145027e89d46d4ee744c106 [^]

Fixed issue 20544: FIC SETSESSION shouldn't set the session with null values

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0048924)
guilleaer   
2012-05-24 18:17   
Test plan:
Follow the steps to reproduce. It shouldn't happen again.

This fix is not risky

Note:
In form view, when a row is being added and the required data has been completed correctly, 'create row' button of the toolbar is clicked. In this moment the current line is saved and the form to enter the data of the new line is shown. In this case FIC receives 2 requests, the first(mode=SETSESSION) to save in session the data of the created row, the second one (mode=NEW) generates the values for the line which we are about to create.

Normally, the SETSESSION command arrives to the FIC before the NEW command, but sometimes the commands are received in the reverse order. If that happens, the selectors will be broken and the default values will not be properly set. This happens because the FIC will try to process the SETSESSION command for the new line, which does not have any values yet, when it should process the line that was just saved.
(0049208)
hudsonbot   
2012-05-25 12:13   
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/5401e185a8b0 [^]

Maturity status: Test
(0049339)
alostale   
2012-05-28 10:13   
Code reviewed and verified on pi@87f24231e3f1