Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028200Openbravo ERPA. Platformpublic2014-11-18 10:312015-11-23 21:17
psanjuan 
caristu 
highmajoralways
closedfixed 
20Ubuntu 8.04.1
 
3.0PR16Q1 
alostale
Core
No
0028200: Amount field located in "Cost" tab set as read-only.
Amount field located in "Cost" tab set as read-only.
Navigate to Landed Cost window and create a new header. Save.

Go to Cost tab and click on "Create One". Select a landed Cost type and enter an Amount in the field Amount.

Press the key "arrow down" therefore a new record in grid view is created.

Realize that "Amount" field is now read-only.
"Amount" field needs to be editable anyway.
No tags attached.
related to defect 00322723.0PR16Q2 closed inigosanchez Error when working in grid mode with the keyboard: combo field not available after pressing ENTER 
Issue History
2014-11-18 10:31psanjuanNew Issue
2014-11-18 10:31psanjuanAssigned To => AugustoMauch
2014-11-18 10:31psanjuanModules => Core
2014-11-18 10:31psanjuanTriggers an Emergency Pack => No
2015-03-11 11:10alostaleStatusnew => acknowledged
2015-03-17 14:37alostaleAssigned ToAugustoMauch => platform
2015-06-25 18:02caristuAssigned Toplatform => NaroaIriarte
2015-11-11 12:13alostaleAssigned ToNaroaIriarte => platform
2015-11-13 10:28caristuAssigned Toplatform => caristu
2015-11-13 10:28caristuStatusacknowledged => scheduled
2015-11-13 15:17caristuNote Added: 0081829
2015-11-16 08:47hgbotCheckin
2015-11-16 08:47hgbotNote Added: 0081857
2015-11-16 08:48caristuReview Assigned To => alostale
2015-11-16 08:48caristuIssue Monitored: alostale
2015-11-16 08:53hgbotCheckin
2015-11-16 08:53hgbotNote Added: 0081858
2015-11-16 08:53hgbotStatusscheduled => resolved
2015-11-16 08:53hgbotResolutionopen => fixed
2015-11-16 08:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/487c8bf134aeab073bb6a09d46fa26dfdfa66988 [^]
2015-11-16 14:23alostaleNote Added: 0081884
2015-11-16 14:23alostaleStatusresolved => closed
2015-11-16 14:23alostaleFixed in Version => 3.0PR16Q1
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082229
2016-03-16 16:31alostaleRelationship addedrelated to 0032272

Notes
(0081829)
caristu   
2015-11-13 15:17   
fix pushed to try
(0081857)
hgbot   
2015-11-16 08:47   
Repository: erp/mods/org.openbravo.userinterface.smartclient.dev
Changeset: ac26aa3e1bd3250d9d4e53af59bb2b0c397e3348
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Nov 16 08:47:18 2015 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.smartclient.dev/rev/ac26aa3e1bd3250d9d4e53af59bb2b0c397e3348 [^]

related to issue 28200: Amount field located in 'Cost' tab set as read-only

---
M web/org.openbravo.userinterface.smartclient/isomorphic/client/widgets/form/ComboBoxItem.js
M web/org.openbravo.userinterface.smartclient/isomorphic/system/development/ISC_Forms.js
M web/org.openbravo.userinterface.smartclient/isomorphic/system/modules-debug/ISC_Forms.js
M web/org.openbravo.userinterface.smartclient/isomorphic/system/modules/ISC_Forms.js
---
(0081858)
hgbot   
2015-11-16 08:53   
Repository: erp/devel/pi
Changeset: 487c8bf134aeab073bb6a09d46fa26dfdfa66988
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Nov 16 08:52:40 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/487c8bf134aeab073bb6a09d46fa26dfdfa66988 [^]

fixes issue 28200: Amount field located in 'Cost' tab set as read-only

The Amount field has a read only logic based on the value of the Invoice Line field and this problem was reproducible if we tab over the Invoice Line field. After that action, the setValue() function of OBComboBoxItem was setting the value to null.

This caused that the currentValue was set to null in setItemValue function of ob-view-form, avoiding to include the invoiceline property into the currentValues of the form. As this property was not present, an undefined value was retrieved when computing the read only logic for the amount field, so the logic was not being calculated properly, causing this field to be displayed as read only.

This was an Smartclient issue in the OBComboBoxItem widget. The corresponding fix for the setValue() function has been applied to solve the issue.

---
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
---
(0081884)
alostale   
2015-11-16 14:23   
code reviewed + tested
(0082229)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test