Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023495Openbravo ERP09. Financial managementpublic2013-04-05 10:582013-04-25 17:50
ngarcia 
ngarcia 
urgentmajoralways
closedfixed 
5
 
3.0MP233.0MP23 
jonalegriaesarte
Core
No
0023495: Element Value could not be added to an account tree
Element Value could not be added to an account tree, if there exists an entry in the AD_TreeNode table with

AD_Tree_ID - identifier of the Tree configured to the Account Tree where the elementvalue is included
Parent_id - '0'
SeqNo - null
Check if there exists a record in the AD_TreeNode which has the previous explained values. If not, you should create one through database

As group admin role:
   Go to Account Tree window and select one record
   Try to create a new Element Value with a search key value different from 0
   It could not be saved but no error message is shown
   A null pointer exception is raised
In the ElementValueEventHandler.getNextSeqNo function replace the following line

if (nodes.size() > 0) {

for

if (nodes.size() > 0 && obc.list().get(0).getSequenceNumber()!=null) {
No tags attached.
Issue History
2013-04-05 10:58ngarciaNew Issue
2013-04-05 10:58ngarciaAssigned To => dmiguelez
2013-04-05 10:58ngarciaModules => Core
2013-04-05 10:58ngarciaResolution time => 1367964000
2013-04-05 10:58ngarciaTriggers an Emergency Pack => No
2013-04-05 10:58ngarciaIssue Monitored: networkb
2013-04-05 14:45dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-04-18 14:59ngarciaAssigned Tojonalegriaesarte => ngarcia
2013-04-18 18:40hgbotCheckin
2013-04-18 18:40hgbotNote Added: 0058027
2013-04-18 18:40hgbotStatusnew => resolved
2013-04-18 18:40hgbotResolutionopen => fixed
2013-04-18 18:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4aa1901ed6b64b4984a04abf3a19719cecc73086 [^]
2013-04-19 12:53hudsonbotCheckin
2013-04-19 12:53hudsonbotNote Added: 0058053
2013-04-25 17:50jonalegriaesarteReview Assigned To => jonalegriaesarte
2013-04-25 17:50jonalegriaesarteStatusresolved => closed
2013-04-25 17:50jonalegriaesarteFixed in Version => 3.0MP23

Notes
(0058027)
hgbot   
2013-04-18 18:40   
Repository: erp/devel/pi
Changeset: 4aa1901ed6b64b4984a04abf3a19719cecc73086
Author: Naiara Garcia <naiara.garcia <at> openbravo.com>
Date: Thu Apr 18 15:29:36 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4aa1901ed6b64b4984a04abf3a19719cecc73086 [^]

Fixed issue 23495: Element Value could not be added to an account tree

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/ElementValueEventHandler.java
---
(0058053)
hudsonbot   
2013-04-19 12:53   
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/872081925d42 [^]

Maturity status: Test