Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0022753
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2013-01-09 16:332013-01-10 20:31
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PriorityimmediateResolutionfixedFixed in Versionpi
StatusclosedFix in branchFixed in SCM revisiona7600139e3c8
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshankarb
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0022753: Display logic for tabs work with session attributes, but not with preferences

DescriptionThree 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.
Steps To Reproduce- 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0055425)
AugustoMauch (manager)
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 (developer)
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 (reporter)
2013-01-10 06:51

Code Reviewed and tested in pi changeset 5205119c890b
(0055469)
hudsonbot (developer)
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

- Issue History
Date Modified Username Field Change
2013-01-09 16:33 AugustoMauch New Issue
2013-01-09 16:33 AugustoMauch Assigned To => AugustoMauch
2013-01-09 16:33 AugustoMauch Modules => Core
2013-01-09 16:33 AugustoMauch Triggers an Emergency Pack => No
2013-01-09 16:34 AugustoMauch Note Added: 0055425
2013-01-09 16:34 AugustoMauch Issue Monitored: dbaz
2013-01-09 16:34 AugustoMauch Issue End Monitor: dbaz
2013-01-09 16:34 AugustoMauch Issue Monitored: shankarb
2013-01-09 16:35 AugustoMauch Review Assigned To => shankarb
2013-01-09 16:44 hgbot Checkin
2013-01-09 16:44 hgbot Note Added: 0055426
2013-01-09 16:44 hgbot Status new => resolved
2013-01-09 16:44 hgbot Resolution open => fixed
2013-01-09 16:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a7600139e3c89e5dee52d8517a9d39552343cfe2 [^]
2013-01-10 06:51 shankarb Note Added: 0055441
2013-01-10 06:51 shankarb Status resolved => closed
2013-01-10 06:51 shankarb Fixed in Version => pi
2013-01-10 20:31 hudsonbot Checkin
2013-01-10 20:31 hudsonbot Note Added: 0055469


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker