Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026231Openbravo ERPA. Platformpublic2014-04-09 22:062014-05-07 18:11
AugustoMauch 
AugustoMauch 
urgentcriticalhave not tried
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
shankarb
Core
No
0026231: Auxiliary Inputs are not being computed in the Tree Grid View
When a record is selected in the tree grid view, its auxiliary inputs and session attributes are not being computed. This means that if there are subtabs with display logic that uses these attributes, the display logic is not going to work
- Create this auxiliary input for the header tab of the Organization window:
   * Name: TestAuxiliaryInput
   * Validation Code: @SQL=SELECT ad_org_id FROM ad_org WHERE ad_org_id=@AD_ORG_ID@
- Adds this display logic to the Period tab of the organization window:
   * Display Logic: @TestAuxiliaryInput@='B843C30461EA4501935CB1D125C9C25A'
With this display logic, the Period Tab should only be shown if the 'F&B EspaƱa, S.A' organization is selected.
- Check that the display logic works if the record is selected in the standard grid view, but not in the tree grid view.
No tags attached.
Issue History
2014-04-09 22:06AugustoMauchNew Issue
2014-04-09 22:06AugustoMauchAssigned To => AugustoMauch
2014-04-09 22:06AugustoMauchModules => Core
2014-04-09 22:06AugustoMauchTriggers an Emergency Pack => No
2014-04-09 22:06AugustoMauchIssue Monitored: shankarb
2014-04-09 22:07AugustoMauchReview Assigned To => shankarb
2014-04-09 22:17hgbotCheckin
2014-04-09 22:17hgbotNote Added: 0066286
2014-04-09 22:17hgbotStatusnew => resolved
2014-04-09 22:17hgbotResolutionopen => fixed
2014-04-09 22:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bf51ff460dc8bebae81a10d58c39b60b38b1674c [^]
2014-04-10 18:42hgbotCheckin
2014-04-10 18:42hgbotNote Added: 0066333
2014-04-15 09:41shankarbNote Added: 0066413
2014-04-15 09:41shankarbStatusresolved => closed
2014-04-15 09:41shankarbFixed in Version => PR14Q2
2014-04-15 10:53AugustoMauchNote Added: 0066422
2014-04-15 10:53AugustoMauchStatusclosed => new
2014-04-15 10:53AugustoMauchResolutionfixed => open
2014-04-15 10:53AugustoMauchFixed in VersionPR14Q2 =>
2014-04-15 13:36hgbotCheckin
2014-04-15 13:36hgbotNote Added: 0066446
2014-04-15 13:36hgbotStatusnew => resolved
2014-04-15 13:36hgbotResolutionopen => fixed
2014-04-15 13:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bf51ff460dc8bebae81a10d58c39b60b38b1674c [^] => http://code.openbravo.com/erp/devel/pi/rev/983d21838275810b0433b345e72e75a941bb27bd [^]
2014-04-15 21:33shankarbNote Added: 0066468
2014-04-15 21:33shankarbStatusresolved => closed
2014-04-15 21:33shankarbFixed in Version => PR14Q2
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066910
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066921
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066935

Notes
(0066286)
hgbot   
2014-04-09 22:17   
Repository: erp/devel/pi
Changeset: bf51ff460dc8bebae81a10d58c39b60b38b1674c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Apr 09 22:15:13 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bf51ff460dc8bebae81a10d58c39b60b38b1674c [^]

Fixes issue 26231: Auxiliary Inputs are not computed in the Tree Grid View

Now when a record is selected in the tree grid view, the toolBar.updateButtonState() is called. This results in a FIC call in SETSESSION mode, that loads the auxiliary inputs and session attributes.

Also some changes have been done to ensure that if the tree grid view is shown, its selected record is used instead of the record selected in the standard grid.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0066333)
hgbot   
2014-04-10 18:42   
Repository: erp/devel/pi
Changeset: b72329997994bd2c527e2dc228b79f5d44dfaadc
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Apr 10 18:41:31 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b72329997994bd2c527e2dc228b79f5d44dfaadc [^]

Related to issue 26231: getParentRecord returns the proper record

The getParentRecord was returning the record selected in the standard grid view of the parent tab, even if it was showing the tree view grid. This resulted in that if the subtab had only one record, the tab display logic was not working properly.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0066413)
shankarb   
2014-04-15 09:41   
Code reviewed and verified in pi changeset 4bce276a5b06
(0066422)
AugustoMauch   
2014-04-15 10:53   
Reopened because it is not working. This error is shown in the console instead of calling the FIC to retrieve the auxiliary inputs:

 Cannot call method 'updateButtonState' of undefined
(0066446)
hgbot   
2014-04-15 13:36   
Repository: erp/devel/pi
Changeset: 983d21838275810b0433b345e72e75a941bb27bd
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Apr 15 13:34:54 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/983d21838275810b0433b345e72e75a941bb27bd [^]

Fixes issue 26231: Fixes bug that provoked a js error before calling the FIC

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0066468)
shankarb   
2014-04-15 21:33   
Code reviewed and verified in pi changeset c25c56618b6d.
(0066910)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test
(0066921)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test
(0066935)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test