Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027918Openbravo ERP09. Financial managementpublic2014-10-20 18:272014-12-30 23:23
jonalegriaesarte 
AugustoMauch 
immediateminorhave not tried
closedfixed 
5
 
3.0PR15Q1 
vmromanos
Core
Production - Confirmed Stable
2014-03-05
3.0PR14Q2
https://code.openbravo.com/erp/devel/pi/rev/1ea574e6513c [^]
No
0027918: After PR14Q2.X and new tree infrastructure, window User Defined Accounting Report Setup window has lost the tree view
After PR14Q2.X and new tree infrastructure, window User Defined Accounting Report Setup window has lost the tree view
- Access to User Defined Accounting Report Setup
- Tree view is not implemented. In MP31.X it was working fine
- Add tree structure to AD_AccountingRpt_Element table:
http://wiki.openbravo.com/wiki/How_to_Define_a_Table_as_a_Tree [^]
No tags attached.
related to design defect 0012577 scheduled platform dbsourcemanager cannot to an ad_column.name update of two columns with intermediate conflicting values like A->B,B->C 
related to defect 0028141 closed dmitry_mezentsev API Change: Deletion of row in AD_TABLE_TREE table 
causes defect 0027930 closed AugustoMauch Changeset has broken the int-inc-pgsql and int-inc-oracle tests 
Issue History
2014-10-20 18:27jonalegriaesarteNew Issue
2014-10-20 18:27jonalegriaesarteAssigned To => vmromanos
2014-10-20 18:27jonalegriaesarteModules => Core
2014-10-20 18:27jonalegriaesarteTriggers an Emergency Pack => No
2014-10-21 10:34AugustoMauchAssigned Tovmromanos => AugustoMauch
2014-10-21 11:12AugustoMauchIssue Monitored: vmromanos
2014-10-21 11:12AugustoMauchReview Assigned To => vmromanos
2014-10-21 11:29hgbotCheckin
2014-10-21 11:29hgbotNote Added: 0071073
2014-10-21 11:29hgbotStatusnew => resolved
2014-10-21 11:29hgbotResolutionopen => fixed
2014-10-21 11:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/203b797e4189534f4b1dfca962588e3d6013ab62 [^]
2014-10-21 11:54AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/1ea574e6513c [^]
2014-10-21 11:55AugustoMauchRegression level => Production - Confirmed Stable
2014-10-21 11:55AugustoMauchRegression introduced in release => 3.0PR14Q2
2014-10-21 11:56AugustoMauchRegression date => 2014-03-05
2014-10-21 11:57AugustoMauchNote Added: 0071074
2014-10-21 11:57AugustoMauchStatusresolved => new
2014-10-21 11:57AugustoMauchResolutionfixed => open
2014-10-21 11:58AugustoMauchNote Added: 0071075
2014-10-21 11:58AugustoMauchSeveritymajor => minor
2014-10-21 11:58AugustoMauchStatusnew => scheduled
2014-10-21 11:58AugustoMauchfix_in_branch => pi
2014-10-21 11:58AugustoMauchStatusscheduled => resolved
2014-10-21 11:58AugustoMauchResolutionopen => fixed
2014-10-21 12:02AugustoMauchNote Added: 0071077
2014-10-21 12:02AugustoMauchStatusresolved => new
2014-10-21 12:02AugustoMauchResolutionfixed => open
2014-10-21 12:32AugustoMauchRelationship addedrelated to 0012577
2014-10-21 12:35AugustoMauchNote Added: 0071080
2014-10-21 13:06AugustoMauchRelationship addedcauses 0027930
2014-10-21 13:10hgbotCheckin
2014-10-21 13:10hgbotNote Added: 0071083
2014-10-21 13:10hgbotStatusnew => resolved
2014-10-21 13:10hgbotResolutionopen => fixed
2014-10-21 13:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/203b797e4189534f4b1dfca962588e3d6013ab62 [^] => http://code.openbravo.com/erp/devel/pi/rev/8a23d66e2f6b9734c14076e86094cc527ac1044c [^]
2014-10-21 15:49vmromanosNote Added: 0071092
2014-10-21 15:49vmromanosStatusresolved => closed
2014-10-21 16:09AugustoMauchNote Added: 0071095
2014-10-21 16:09AugustoMauchStatusclosed => new
2014-10-21 16:09AugustoMauchResolutionfixed => open
2014-10-21 16:18hgbotCheckin
2014-10-21 16:18hgbotNote Added: 0071096
2014-10-21 16:18hgbotStatusnew => resolved
2014-10-21 16:18hgbotResolutionopen => fixed
2014-10-21 16:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/8a23d66e2f6b9734c14076e86094cc527ac1044c [^] => http://code.openbravo.com/erp/devel/pi/rev/5f9f3dae6e3661a79ee3933e6f454994d32b43a7 [^]
2014-10-21 17:32hgbotCheckin
2014-10-21 17:32hgbotNote Added: 0071098
2014-10-22 13:41vmromanosStatusresolved => closed
2014-11-11 15:44AugustoMauchRelationship addedrelated to 0028141
2014-11-11 15:56AugustoMauchNote Added: 0071557
2014-12-30 23:23hudsonbotCheckin
2014-12-30 23:23hudsonbotNote Added: 0072957
2014-12-30 23:23hudsonbotCheckin
2014-12-30 23:23hudsonbotNote Added: 0072958
2014-12-30 23:23hudsonbotCheckin
2014-12-30 23:23hudsonbotNote Added: 0072962

Notes
(0071073)
hgbot   
2014-10-21 11:29   
Repository: erp/devel/pi
Changeset: 203b797e4189534f4b1dfca962588e3d6013ab62
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 21 11:28:25 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/203b797e4189534f4b1dfca962588e3d6013ab62 [^]

Fixes issue 27918: User Defined Accounting Report Setup shows tree view

The problem was that the tree configuration previous to the new tree implementation was wrong. The Table table had a field called Type Area which was originally used to specify the Tree type of the table. The FinancialMgmtAccountingRptElement table had this field empty, and instead the FinancialMgmtAccountingReport had this field set to Accounting Report, which is the value that should have been assigned to FinancialMgmtAccountingRptElement.

The configuration of the new implementation was done based on the Tree Type field, so it was wrong for the FinancialMgmtAccountingRptElement table. Now it has been properly done (it has been flagged as Is Tree, a record has been added to the Table Tree Category subtab and a value has been selected in the Table Tree Category field of the Tab tab.

Also, a module script has been modified to fix the data of ad_tree. The ad_tree table has a column called ad_table_id, which points to the table that the tree belongs to. The accounting report tree was mistakenly pointing to FinancialMgmtAccountingReport, and the updated modulescript fixes it so that now it points to FinancialMgmtAccountingRptElement.

---
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TABLE_TREE.xml
M src-util/modulescript/build/classes/org/openbravo/modulescript/UpdateADTrees.class
M src-util/modulescript/build/classes/org/openbravo/modulescript/UpdateADTreesData.class
M src-util/modulescript/src/org/openbravo/modulescript/UpdateADTrees.java
M src-util/modulescript/src/org/openbravo/modulescript/UpdateADTrees_Data.xsql
---
(0071074)
AugustoMauch   
2014-10-21 11:57   
Reopened to update severity
(0071075)
AugustoMauch   
2014-10-21 11:58   
Severity updated to minor to follow these guidelines [1]. This issue should be minor because it is best described by this epigraph: "There are errors causing partial, non-critical functionality loss. One which impairs some operations but allows the customer to continue to function"


[1] http://wiki.openbravo.com/wiki/Bug_Reporting_Guidelines#How_to_Choose_the_Right_Severity [^]
(0071077)
AugustoMauch   
2014-10-21 12:02   
Reopened because the fix is not passing CI: http://ci.openbravo.com/job/int-inc-pgsql/1116/ [^]
(0071080)
AugustoMauch   
2014-10-21 12:35   
CI is failing because of these design defect [1].

When this [2] part of the changeset is applied, 'AR' is set to the tree type of the table with ID '800178' before removing 'AR' from the tree type of the table with ID '800223'. Tree type has a unique constraint that is at that point enabled and because of that this error is thrown when applying that change: 'org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ad_table_treetype_un"'

[1] https://issues.openbravo.com/view.php?id=12577 [^]
[2] https://code.openbravo.com/erp/devel/pi/diff/203b797e4189/src-db/database/sourcedata/AD_TABLE.xml [^]
(0071083)
hgbot   
2014-10-21 13:10   
Repository: erp/devel/pi
Changeset: 8a23d66e2f6b9734c14076e86094cc527ac1044c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 21 13:09:51 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8a23d66e2f6b9734c14076e86094cc527ac1044c [^]

Fixes issue 27918, fixes issue 27930. Prevents breaking the int-inc tests

The problem was that due to this design defect [1], the oracle and postgres int-inc tests were failing. This is because a value 'AR' was being set to the treetype of a table and then being set to null in other table whose treetype was also 'AR'. Treetype has a unique constraint that was enabled when the application data was updated, so the constraint failed.

To prevent this error, the treetype of the second table is going to be set to null in a modulescript, that is executed before updating the application data.

[1] https://issues.openbravo.com/view.php?id=12577 [^]

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/UpdateADTrees.class
M src-util/modulescript/build/classes/org/openbravo/modulescript/UpdateADTreesData.class
M src-util/modulescript/src/org/openbravo/modulescript/UpdateADTrees.java
M src-util/modulescript/src/org/openbravo/modulescript/UpdateADTrees_Data.xsql
---
(0071092)
vmromanos   
2014-10-21 15:49   
Code review + testing OK.

Update from previous releases: the tree structure is properly kept. After the upgrade process, the tree can be modified if necessary.

Install from scratch. I'm able to properly define a new tree.
(0071095)
AugustoMauch   
2014-10-21 16:09   
Reopened because it breaks CI: https://ci.openbravo.com/job/int-initial-pgsql/558/ [^]
(0071096)
hgbot   
2014-10-21 16:18   
Repository: erp/devel/pi
Changeset: 5f9f3dae6e3661a79ee3933e6f454994d32b43a7
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 21 16:18:05 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5f9f3dae6e3661a79ee3933e6f454994d32b43a7 [^]

Fixes issue 27918: Removes tree structure from table that is not a tree

In the initial changeset for fixing 27918, the tree type of the FinancialMgmtAccountingReport table was set to null because that table is not really a tree. The problem was that the cleaning up of the table was not complete, the Is Tree flag should be set to false, and its Tree Table Category subtab should be empty. This has been done now.

The Initial Client Setup was failing because of the incomplete cleanup. The Tree Table Category of FinancialMgmtAccountingReport had a record called Accounting Report, which is the same name as the tree of the FinancialMgmtAccountingRptElement table.

---
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TABLE_TREE.xml
---
(0071098)
hgbot   
2014-10-21 17:32   
Repository: erp/devel/api-checks
Changeset: 6b93fec364183fb0053518861c5ca40ad350c8f1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Oct 21 17:32:20 2014 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/6b93fec364183fb0053518861c5ca40ad350c8f1 [^]

Related with issue 27918: Fixes API Change for deleting row of AD_TABLE_TREE

There is no risk in removing the entry in the AD_TABLE_TREE for the FinancialMgmtAccountingReport table. It had been mistakenly added in the beginning, and it was not being used.

---
M model/src-db/database/sourcedata/AD_TABLE_TREE.xml
---
(0071557)
AugustoMauch   
2014-11-11 15:56   
An API change [1] was reported for this changeset [2].

[1] https://issues.openbravo.com/view.php?id=28141 [^]
[2] https://code.openbravo.com/erp/devel/api-checks/rev/6b93fec364183fb0053518861c5ca40ad350c8f1 [^]
(0072957)
hudsonbot   
2014-12-30 23:23   
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/6525fe229e06 [^]
Maturity status: Test
(0072958)
hudsonbot   
2014-12-30 23:23   
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/6525fe229e06 [^]
Maturity status: Test
(0072962)
hudsonbot   
2014-12-30 23:23   
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/6525fe229e06 [^]
Maturity status: Test