Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029086Openbravo ERPA. Platformpublic2015-02-26 19:052022-02-01 08:05
caristu 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
pi 
 
OBPS
Core
34265
No
0029086: TableDir reference does not support parent table with computed column as identifier
TableDir reference does not support parent table with computed column as identifier
1. Add a computed column in a parent table and mark it as "record identifier". For example, add a computed column in the FIN_Financial_Account table.
2. Create a child table, with foreign key to the parent table.
In the table definition, use TableDir as reference type. We already have this with the FIN_Finacc_Transaction table
3. Recompile. Notice that an error related to the computed column is shown, but the compilation ends successfully
4. Navigate to the Financial Account window. Open any record of the Transaction tan in form mode, the record is not opened properly and the attached error appears in the log.

Notice that using a different reference from TableDir in the child table, the record in the child tabs can be opened without errors.
To be decided if it is allowed to mark a computed column as record identifier
No tags attached.
txt errorLog.txt (80,047) 2015-02-26 19:05
https://issues.openbravo.com/file_download.php?file_id=7836&type=bug
Issue History
2015-02-26 19:05caristuNew Issue
2015-02-26 19:05caristuAssigned To => AugustoMauch
2015-02-26 19:05caristuFile Added: errorLog.txt
2015-02-26 19:05caristuOBNetwork customer => Yes
2015-02-26 19:05caristuModules => Core
2015-02-26 19:05caristuSupport ticket => 34265
2015-02-26 19:05caristuResolution time => 1431295200
2015-02-26 19:05caristuTriggers an Emergency Pack => No
2015-02-26 19:06caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7800#r7800
2015-02-26 19:06caristuversion => pi
2015-02-26 19:06caristuTarget Version => 3.0PR15Q2
2015-02-26 19:09caristuIssue Monitored: networkb
2015-02-26 19:14caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7801#r7801
2015-02-26 19:14caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7802#r7802
2015-03-06 09:15alostaleNote Added: 0075226
2015-03-06 09:18alostaleStatusnew => acknowledged
2015-03-09 17:37jonalegriaesarteResolution time1431295200 =>
2015-03-11 08:07alostaleTarget Version3.0PR15Q2 =>
2015-03-17 14:37alostaleAssigned ToAugustoMauch => platform
2015-11-11 11:37alostalePriorityhigh => normal
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

Notes
(0075226)
alostale   
2015-03-06 09:15   
Computed column shouldn't be part of any identifier due to pontential performance issues.

Proposed solution:
- In UI disallow (hide the flag) setting a computed column as part of the identifier
- Even if marked, ignore them preventing errors in log