Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020348Openbravo ERPA. Platformpublic2012-04-25 13:502012-05-10 16:36
psarobe 
AugustoMauch 
immediatemajoralways
closedfixed 
5
pi 
3.0MP11 
Core
No
0020348: Dates fields in grid are not working well when saving the date
When you save a date in grid using the shortcuts (ctrl+S) although you see the new value in the UI, the database still has the old value
1. Go to sales invoice and select a header in status Draft
2. Edit the record in grid view.
3. Edit the invoice date typing the new date. Don't use the calendar
4. Use the shortcut CTRL+S to save the record
5. You see the new date
6. Press refresh button. You still see the new date
7. Close the window. Open the window
8. Now the invoice date is not the new value but the old one. THIS IS WRONG

expected behaviour: You should see the new value
Regression QA
has duplicate defect 0020375 closed AugustoMauch Saving from keyboard shortcut does not trigger date autocompletion 
Issue History
2012-04-25 13:50psarobeNew Issue
2012-04-25 13:50psarobeAssigned To => alostale
2012-04-25 13:50psarobeModules => Core
2012-04-25 14:35AugustoMauchAssigned Toalostale => AugustoMauch
2012-04-25 16:57hgbotCheckin
2012-04-25 16:57hgbotNote Added: 0047966
2012-04-25 16:57hgbotStatusnew => resolved
2012-04-25 16:57hgbotResolutionopen => fixed
2012-04-25 16:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/52d3acc5d1d4860e00c2fb31b936eab14a882ec5 [^]
2012-04-26 11:02alostaleNote Added: 0047999
2012-04-26 11:02alostaleStatusresolved => closed
2012-04-26 11:02alostaleFixed in Version => 3.0MP11
2012-04-26 19:32hudsonbotCheckin
2012-04-26 19:32hudsonbotNote Added: 0048098
2012-05-03 09:40AugustoMauchRelationship addedhas duplicate 0020375
2012-05-10 16:36plujanTag Attached: Regression QA

Notes
(0047966)
hgbot   
2012-04-25 16:57   
Repository: erp/devel/pi
Changeset: 52d3acc5d1d4860e00c2fb31b936eab14a882ec5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Apr 25 16:55:56 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/52d3acc5d1d4860e00c2fb31b936eab14a882ec5 [^]

Fixes issue 20348: Date properly saved when using shortcut in grid

When the row was saved using the shortcut, the new values were being obtained before the date was updated. This has been changed so that the date will be updated before the new values to be saved are obtaine
d.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0047999)
alostale   
2012-04-26 11:02   
Code reviewed and verified on pi@d02dd5df46fe

Executed test cases:
*All in form and grid view
  -Modify date, without moving to another field crtl+S
  -Modify date, without moving to another field click save button
  -Modify date, without moving to another field go to another tab (autosave)
(0048098)
hudsonbot   
2012-04-26 19:32   
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/70a717a9ffa1 [^]

Maturity status: Test