Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023153Openbravo ERPB. User interfacepublic2013-02-24 01:042013-06-20 02:08
pjuvara 
shankarb 
normalminoralways
closedfixed 
5
3.0MP20 
3.0MP25 
AugustoMauch
Core
No
0023153: Empty account tree is shown when focus is not on an account record
In the Account Tree window if you put the focus on one of the records in the Element Value block, you can open the account tree using the tree icon.

If the focus is in the block but not on a specific icon, the account tree window opens up but it is empty containing only the root node.
See attachment.

This might be a regression. I was able to easily reproduce it in MP19 and MP20 but in older versions (MP17 and before), I had never seen it.
1) Navigate to Account Tree window
2) Navigate to Element Value tab, putting focus in the filters and not on the records
3) Open the tree
Either the tree icon is disabled or the account tree should open correctly.
No tags attached.
related to defect 00237023.0MP25 closed jecharri Account Tree is not properly loaded when focus is not located in Element Value and "Tree" icon is pressed 
png Openbravo Account Tree F B España S.A....png (131,480) 2013-02-24 01:04
https://issues.openbravo.com/file_download.php?file_id=5999&type=bug
png
Issue History
2013-02-24 01:04pjuvaraNew Issue
2013-02-24 01:04pjuvaraAssigned To => dbaz
2013-02-24 01:04pjuvaraFile Added: Openbravo Account Tree F B España S.A....png
2013-02-24 01:04pjuvaraModules => Core
2013-02-24 01:04pjuvaraTriggers an Emergency Pack => No
2013-02-28 17:50dbazAssigned Todbaz => AugustoMauch
2013-03-05 17:15AugustoMauchAssigned ToAugustoMauch => dmiguelez
2013-05-15 12:35dmiguelezAssigned Todmiguelez => AugustoMauch
2013-06-10 07:40shankarbAssigned ToAugustoMauch => shankarb
2013-06-11 09:20shankarbReview Assigned To => AugustoMauch
2013-06-11 09:20shankarbIssue Monitored: AugustoMauch
2013-06-11 10:09hgbotCheckin
2013-06-11 10:09hgbotNote Added: 0059317
2013-06-11 10:09hgbotStatusnew => resolved
2013-06-11 10:09hgbotResolutionopen => fixed
2013-06-11 10:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d334e84e2fb20ac67daeccc448849f1eb01b1172 [^]
2013-06-11 12:25shankarbNote Added: 0059329
2013-06-17 16:27jecharriRelationship addedrelated to 0023702
2013-06-17 18:12AugustoMauchNote Added: 0059473
2013-06-17 18:12AugustoMauchStatusresolved => closed
2013-06-17 18:12AugustoMauchFixed in Version => 3.0MP25
2013-06-20 02:08hudsonbotCheckin
2013-06-20 02:08hudsonbotNote Added: 0059561

Notes
(0059317)
hgbot   
2013-06-11 10:09   
Repository: erp/devel/pi
Changeset: d334e84e2fb20ac67daeccc448849f1eb01b1172
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jun 11 12:45:55 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/d334e84e2fb20ac67daeccc448849f1eb01b1172 [^]

Fixes Issue 0023153: Empty account tree is shown when focus is not on an account record

The tree icon is disabled if no records are selected in grid.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0059329)
shankarb   
2013-06-11 12:25   
The value of C_Element_ID is used to display the Account Tree. But the value of the parent C_Element_ID is available in vars only if any record is selected. Hence it returns null for root element. So an empty tree was shown. Since it was not possible to retrieve the element value, the button has been disabled if no record is selected in the grid.
(0059473)
AugustoMauch   
2013-06-17 18:12   
Code reviewed and verified in pi@4a37945c258d
(0059561)
hudsonbot   
2013-06-20 02:08   
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/5caf871044ad [^]

Maturity status: Test