Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020071Openbravo ERPA. Platformpublic2012-03-21 12:222012-04-02 15:29
dmitry_mezentsev 
AugustoMauch 
immediatemajoralways
closedfixed 
5
pi 
3.0MP93.0MP9 
Core
No
0020071: Change in the date field is not saved when editing it using keyboard and then navigating from it directly to the child tab
Change in the date field is not saved when editing it using keyboard and then
navigating from it directly to the child tab using mouse

But

It works if tabbing out of this field or saving using toolbar save button.
live.builds.pi, standard user.

1. New Purchase Invoice.
2. Select any Business Partner.
3. Then change Invoice Date (or Accounting Date) and without tabbing out from this field click with a mouse on a Lines part of the screen.
4. Header is saved and displays correct date in the field.
5. Now go to Header and refresh it with a toolbar button. Mention that after refresh date field is changed.
Regression
related to defect 00185133.0MP4 closed mtaal Expressions in numeric fields do not work anymore 
Issue History
2012-03-21 12:22dmitry_mezentsevNew Issue
2012-03-21 12:22dmitry_mezentsevAssigned To => AugustoMauch
2012-03-21 12:22dmitry_mezentsevModules => Core
2012-03-21 18:23hgbotCheckin
2012-03-21 18:23hgbotNote Added: 0046629
2012-03-21 18:23hgbotStatusnew => resolved
2012-03-21 18:23hgbotResolutionopen => fixed
2012-03-21 18:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3520624041bc91cc1dafe8651d437fa17ba21720 [^]
2012-03-21 18:39AugustoMauchNote Added: 0046632
2012-03-21 18:48marvintmNote Added: 0046633
2012-03-21 18:48marvintmStatusresolved => new
2012-03-21 18:48marvintmResolutionfixed => open
2012-03-22 18:18hgbotCheckin
2012-03-22 18:18hgbotNote Added: 0046661
2012-03-22 18:18hgbotStatusnew => resolved
2012-03-22 18:18hgbotResolutionopen => fixed
2012-03-22 18:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/3520624041bc91cc1dafe8651d437fa17ba21720 [^] => http://code.openbravo.com/erp/devel/pi/rev/092c6bff0a7435105c4441c34c36a566c2506a52 [^]
2012-03-22 19:07marvintmStatusresolved => closed
2012-03-23 14:09hgbotCheckin
2012-03-23 14:09hgbotNote Added: 0046689
2012-04-01 20:34hgbotCheckin
2012-04-01 20:34hgbotNote Added: 0047019
2012-04-01 20:34hgbotStatusclosed => resolved
2012-04-01 20:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/092c6bff0a7435105c4441c34c36a566c2506a52 [^] => http://code.openbravo.com/erp/devel/pi/rev/55e501dad3b7d63773f6054bffc08b08999b527d [^]
2012-04-01 20:34hgbotCheckin
2012-04-01 20:34hgbotNote Added: 0047020
2012-04-01 20:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/55e501dad3b7d63773f6054bffc08b08999b527d [^] => http://code.openbravo.com/erp/devel/pi/rev/0a30d7aaaed2e14a9904808e7135b93665f23737 [^]
2012-04-01 20:34hgbotCheckin
2012-04-01 20:34hgbotNote Added: 0047021
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047197
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047205
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047214
2012-04-02 10:23AugustoMauchStatusresolved => closed
2012-04-02 10:23AugustoMauchFixed in Version => 3.0MP9
2012-04-02 13:40dmitry_mezentsevTag Attached: Regression
2012-04-02 15:27AugustoMauchNote Added: 0047313
2012-04-02 15:27AugustoMauchStatusclosed => new
2012-04-02 15:27AugustoMauchResolutionfixed => open
2012-04-02 15:27AugustoMauchFixed in Version3.0MP9 =>
2012-04-02 15:28AugustoMauchRelationship addedrelated to 0018513
2012-04-02 15:28AugustoMauchStatusnew => scheduled
2012-04-02 15:28AugustoMauchfix_in_branch => pi
2012-04-02 15:28AugustoMauchStatusscheduled => resolved
2012-04-02 15:28AugustoMauchFixed in Version => 3.0MP9
2012-04-02 15:28AugustoMauchResolutionopen => fixed
2012-04-02 15:28AugustoMauchStatusresolved => closed
2012-04-02 15:29AugustoMauchNote Added: 0047314

Notes
(0046629)
hgbot   
2012-03-21 18:23   
Repository: erp/devel/pi
Changeset: 3520624041bc91cc1dafe8651d437fa17ba21720
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 21 18:21:23 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3520624041bc91cc1dafe8651d437fa17ba21720 [^]

Fixes issue 20071: Now autosave will work when focus is in a date field

The ob-formitem-date.js now overwrites the blur method in order to make sure that its value is updated when the autosave is done.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
(0046632)
AugustoMauch   
2012-03-21 18:39   
If the user moves to another tab while the focus is on a date field that has been just modified, the autosave was being done before the updateValue of the date field was executed.

The blur method of the focused field is called inside the autosave method. ob-formitem-date now overwrites the blur function, calling updateValue so that the value of the date is updated when the autosave is done. This is only done is the form is visible, it is not needed in the grid.
(0046633)
marvintm   
2012-03-21 18:48   
The problem is fixed in form view, but in grid view the same problem happens. It can be easily reproduced by following the same steps, but in grid view instead of form view.
(0046661)
hgbot   
2012-03-22 18:18   
Repository: erp/devel/pi
Changeset: 092c6bff0a7435105c4441c34c36a566c2506a52
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 22 18:18:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/092c6bff0a7435105c4441c34c36a566c2506a52 [^]

Fixes issue 20071: Autosave with date field focus works both in grid and form view

The previous fix only achieved to fix the issue when the change of tab was done while the date field was focus in the form view. Now it also works if it is focused in grid view.

This solution works for date fields that have callouts and for date fields that do not.
Additional changes have been made to allow to save a date multiple times in a row.

---
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/grid/ob-view-grid.js
---
(0046689)
hgbot   
2012-03-23 14:09   
Repository: erp/devel/pi
Changeset: db4c8e8f034548ba09b2ec101d8227d2d83fe2b3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 23 14:07:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/db4c8e8f034548ba09b2ec101d8227d2d83fe2b3 [^]

Related to issue 20071: Added unit test compatibility.

The changes made to fix the issue 20071 worked when the change of the date fields were done through user interaction. The unit tests call directly the setValue method of the dateTextField property of the date, scenario which had not been considered, and the date field was not being flagged as changed. This has been fixed by overwriting the setValue method of the dateTextField of the date field.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
(0047019)
hgbot   
2012-04-01 20:34   
Repository: erp/devel/pi
Changeset: 55e501dad3b7d63773f6054bffc08b08999b527d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 21 18:21:23 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/55e501dad3b7d63773f6054bffc08b08999b527d [^]

Fixes issue 20071: Now autosave will work when focus is in a date field

The ob-formitem-date.js now overwrites the blur method in order to make sure that its value is updated when the autosave is done.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
(0047020)
hgbot   
2012-04-01 20:34   
Repository: erp/devel/pi
Changeset: 0a30d7aaaed2e14a9904808e7135b93665f23737
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 22 18:18:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0a30d7aaaed2e14a9904808e7135b93665f23737 [^]

Fixes issue 20071: Autosave with date field focus works both in grid and form view

The previous fix only achieved to fix the issue when the change of tab was done while the date field was focus in the form view. Now it also works if it is focused in grid view.

This solution works for date fields that have callouts and for date fields that do not.
Additional changes have been made to allow to save a date multiple times in a row.

---
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/grid/ob-view-grid.js
---
(0047021)
hgbot   
2012-04-01 20:34   
Repository: erp/devel/pi
Changeset: e022f7514b6b059c4d56890b0edec92bb39bf359
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Mar 23 14:07:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e022f7514b6b059c4d56890b0edec92bb39bf359 [^]

Related to issue 20071: Added unit test compatibility.

The changes made to fix the issue 20071 worked when the change of the date fields were done through user interaction. The unit tests call directly the setValue method of the dateTextField property of the date, scenario which had not been considered, and the date field was not being flagged as changed. This has been fixed by overwriting the setValue method of the dateTextField of the date field.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
(0047197)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test
(0047205)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test
(0047214)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test
(0047313)
AugustoMauch   
2012-04-02 15:27   
Reopened to add relationship
(0047314)
AugustoMauch   
2012-04-02 15:29   
This regression was caused by the changeset that fixed issue 18513.