Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028782Openbravo ERPA. Platformpublic2015-01-27 12:412015-01-29 13:23
vmromanos 
AugustoMauch 
normalminoralways
acknowledgedopen 
20Debian 5.0
 
 
Core
No
0028782: Column's default value doesn't work when the column doesn't have an associated field in a tab
When a column is not associated to any field in a tab, the default value is not populated.
As a consequence, if the column is mandatory, the record can't be saved.

However, if the column has a field in this tab, the default value works fine.
As System Admin
1. Activate the professional instance
2. Go to Windows, tabs and fields and search "Multiphase project"
3. Go to the first tab
4. Search for the c_currency_id column (which has a default value of @C_Currency_ID) and delete it. (You may need to set core as indevelopment first)

As group admin:
1. Go to multiphase window
2. Create a new record. Fill only mandatory fields
3. Try to save. An error is shown: c_currency_id is empty but it's a mandatory field
No tags attached.
related to design defect 0028783 acknowledged AugustoMauch Openbravo ERP Callout can't populate column's value when the field is not present in the tab 
causes defect 0028778 closed vmromanos Modules c_currency_id is empty when saving a new contract 
Issue History
2015-01-27 12:41vmromanosNew Issue
2015-01-27 12:41vmromanosAssigned To => AugustoMauch
2015-01-27 12:41vmromanosModules => Core
2015-01-27 12:41vmromanosTriggers an Emergency Pack => No
2015-01-27 12:41vmromanosNote Added: 0073808
2015-01-27 13:16vmromanosRelationship addedrelated to 0028783
2015-01-27 13:16vmromanosRelationship addedcauses 0028778
2015-01-29 13:21alostaleNote Added: 0073896
2015-01-29 13:22alostaleNote Added: 0073897
2015-01-29 13:22alostaleSeveritymajor => minor
2015-01-29 13:22alostaleTypedefect => design defect
2015-01-29 13:23alostaleStatusnew => acknowledged

Notes
(0073808)
vmromanos   
2015-01-27 12:41   
Note that this issue might be a regression
(0073896)
alostale   
2015-01-29 13:21   
It is not a regression
(0073897)
alostale   
2015-01-29 13:22   
* downgrading severity to minor because it has an easy workaround: add the field to the tab
* moving to design defect: implementing this, requires a refactor in FIC which is a kernel and sesitive kernel piece