Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029401Openbravo ERPA. Platformpublic2015-03-25 13:012022-02-01 08:05
caristu 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
 
 
OBPS
Core
34025
No
0029401: Read only logic is not computed properly under some circumstances
Read only logic is not computed properly under some circumstances, this can cause that some fields appear in read only mode when they should not.
1) Install the "com.openbravo.support.test" module with the latest changes in the
repository of the module (tag Issue29401). This change includes a field called Test Field in the Purchase Order window with the followin read only logic: (it is editable only when the order is in draft status)
2) Go to the [Purchase Window], create a new record in the header
3) Go to the [Lines] tab, create a new record in grid view, select a product and click Ctrl+F2 to switch to the form view
4) Place in the order quantity, enter a quantity and press the tab button of the keyboard.
5) Notice that the Test Field has been set in read only but it should not be in that status
In the view definition the following statement is set:

f.disableItem('suptestTest', context.DocStatus !== 'DR');

Notice that after following these steps context.DocStatus is undefined, this causes that context.DocStatus !== 'DR' is true, causing the change in the field to be read only
No tags attached.
Issue History
2015-03-25 13:01caristuNew Issue
2015-03-25 13:01caristuAssigned To => platform
2015-03-25 13:01caristuOBNetwork customer => Yes
2015-03-25 13:01caristuModules => Core
2015-03-25 13:01caristuTriggers an Emergency Pack => No
2015-03-25 13:03hgbotCheckin
2015-03-25 13:03hgbotNote Added: 0075965
2015-03-25 13:04hgbotCheckin
2015-03-25 13:04hgbotNote Added: 0075966
2015-03-25 13:04caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8102#r8102
2015-03-25 13:05caristuSupport ticket => 34025
2015-03-25 13:17caristuNote View State: private: 75965
2015-03-25 13:17caristuNote View State: private: 75966
2015-03-25 13:17caristuIssue Monitored: networkb
2015-03-26 08:25alostaleStatusnew => acknowledged
2015-03-27 15:36hgbotCheckin
2015-03-27 15:36hgbotNote Added: 0076094
2015-03-27 15:37hgbotCheckin
2015-03-27 15:37hgbotNote Added: 0076095
2015-03-30 08:58caristuNote View State: private: 76094
2015-03-30 08:58caristuNote View State: private: 76095
2015-03-30 09:03caristuNote Deleted: 0075965
2015-03-30 09:03caristuNote Deleted: 0075966
2015-03-30 09:03caristuNote Deleted: 0076094
2015-03-30 09:03caristuNote Deleted: 0076095
2015-11-11 11:37alostalePriorityhigh => normal
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.