Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022753Openbravo ERPA. Platformpublic2013-01-09 16:332013-01-10 20:31
AugustoMauch 
AugustoMauch 
immediatemajorhave not tried
closedfixed 
5
 
pi 
shankarb
Core
No
0022753: Display logic for tabs work with session attributes, but not with preferences
Three types of variables can be used in a tab display logic:
 1- Values of a ancestor tab field
 2- Session attribute
 3- Preference

Currently 1) and 2) works, but not 3.
- Use this display logic in the Lines tab of the Sales Order window: @StockReservations@!''
- As F&B admin, make sure that there is no value defined for the Enable Stock Reservations property.
- Open Sales Order. The Lines tab should not be shown, but right now it is shown.
No tags attached.
Issue History
2013-01-09 16:33AugustoMauchNew Issue
2013-01-09 16:33AugustoMauchAssigned To => AugustoMauch
2013-01-09 16:33AugustoMauchModules => Core
2013-01-09 16:33AugustoMauchTriggers an Emergency Pack => No
2013-01-09 16:34AugustoMauchNote Added: 0055425
2013-01-09 16:34AugustoMauchIssue Monitored: dbaz
2013-01-09 16:34AugustoMauchIssue End Monitor: dbaz
2013-01-09 16:34AugustoMauchIssue Monitored: shankarb
2013-01-09 16:35AugustoMauchReview Assigned To => shankarb
2013-01-09 16:44hgbotCheckin
2013-01-09 16:44hgbotNote Added: 0055426
2013-01-09 16:44hgbotStatusnew => resolved
2013-01-09 16:44hgbotResolutionopen => fixed
2013-01-09 16:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a7600139e3c89e5dee52d8517a9d39552343cfe2 [^]
2013-01-10 06:51shankarbNote Added: 0055441
2013-01-10 06:51shankarbStatusresolved => closed
2013-01-10 06:51shankarbFixed in Version => pi
2013-01-10 20:31hudsonbotCheckin
2013-01-10 20:31hudsonbotNote Added: 0055469

Notes
(0055425)
AugustoMauch   
2013-01-09 16:34   
Test Plan:

- Use this display logic in the Lines tab of the Sales Order window: @StockReservations@!''
- As F&B admin, make sure that there is no value defined for the Enable Stock Reservations property.
- Open Sales Order. The Lines tab should not be shown
- Add a preference for the property Enable Stock Reservations with value set to Y.
- Log out and log in again to reload the preferences.
- Open Sales Order again. The Lines tab should be shown.

- Test that it is still possible to use session preferences (i.e. @ShowAcct@!'') and the values of fields of the ancestor tabs (i.e. @DocumentNo@!'').
(0055426)
hgbot   
2013-01-09 16:44   
Repository: erp/devel/pi
Changeset: a7600139e3c89e5dee52d8517a9d39552343cfe2
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Jan 09 16:44:12 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a7600139e3c89e5dee52d8517a9d39552343cfe2 [^]

Fixes issue 22753: Tab display logic works with preferences

Preferences were being treated as fields, so its name was wrongly being converted to its inp form. Of the three types of variables that can be used in the display logic of a tab (session attributes, preferences and fields of the tab ancestors) only the fields have to be converted to its inp format. Both session attibutes and preference values can be included in the tab definition, because they are independent of the selected row.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/DynamicExpressionParser.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
---
(0055441)
shankarb   
2013-01-10 06:51   
Code Reviewed and tested in pi changeset 5205119c890b
(0055469)
hudsonbot   
2013-01-10 20:31   
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/67a6d258fb63 [^]

Maturity status: Test