|View Issue Details|
|Type||Category||Severity||Reproducibility||Date Submitted||Last Update|
|defect||[Openbravo ERP] A. Platform||minor||always||2012-05-09 12:48||2012-05-25 12:11|
|Priority||normal||Resolution||fixed||Fixed in Version||pi|
|Status||closed||Fix in branch||Fixed in SCM revision||e720f25cba62|
|OS Version||Database version||Ant version|
|Product Version||SCM revision|
|Review Assigned To|
|Regression introduced in release|
|Regression introduced by commit|
|Triggers an Emergency Pack||No|
0020457: Link to window in the toolbar even if the role doesn't have access to the window
|Description||Links in fields are dynamically hidden if the role doesn't have access to the window. So, for example, the field "Transaction document" in Sales Invoice is not shown if the role doesn't have access to the Document Types window.|
However, this doesn't work in the case of the fields in the toolbar. In that case, the link is shown in all cases, and if the user clicks on it while being logged in a role without access to that window, the window is opened, but an ugly red message is shown.
|Steps To Reproduce||In a role without access to the Currency window, click on the Currency link in a Sales Invoice.|
The currency window will be shown, and a not nice red error will also be shown.
|Proposed Solution||The link should be hidden like it is on normal non-toolbar fields.|
|Tags||No tags attached.|
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed May 09 15:43:52 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e720f25cba6280ec0cc7731ae6f4157cf9f85d25 [^]
Fixes issue 20457: Link removed in status bar if window not accessible
If a field with a link was shown in the status bar, the link was active regardless of the accessibility to the target window. Now, there will only be a link if the target window is accessible by the current role.
- Login as F&B Admin
- Open the role Window
- Select the F&B Admin role
- Delete from the Window Access tab the Currency entry
- Log out and Login again as F&B Admin
- Open the Sales Order window
- Open any registry in form view.
- The currency field should be shown in form view, but it should not be a link to the Currency window.
Check that the links in the status keep working (there are some in the Accounting tab of the Financial Account window).
|This fix is not risky.|
|Code reviewed and tested in pi@e720f25cba62|
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/5401e185a8b0 [^]
Maturity status: Test
|2012-05-09 12:48||marvintm||New Issue|
|2012-05-09 12:48||marvintm||Assigned To||=> AugustoMauch|
|2012-05-09 12:48||marvintm||Modules||=> Core|
|2012-05-09 15:01||AugustoMauch||Relationship added||related to 0016874|
|2012-05-09 15:44||hgbot||Note Added: 0048510|
|2012-05-09 15:44||hgbot||Status||new => resolved|
|2012-05-09 15:44||hgbot||Resolution||open => fixed|
|2012-05-09 15:44||hgbot||Fixed in SCM revision||=> http://code.openbravo.com/erp/devel/pi/rev/e720f25cba6280ec0cc7731ae6f4157cf9f85d25 [^]|
|2012-05-09 15:52||AugustoMauch||Note Added: 0048511|
|2012-05-09 15:52||AugustoMauch||Note Added: 0048512|
|2012-05-09 17:52||guilleaer||Note Added: 0048523|
|2012-05-09 17:52||guilleaer||Status||resolved => closed|
|2012-05-09 17:52||guilleaer||Fixed in Version||=> pi|
|2012-05-25 12:11||hudsonbot||Note Added: 0049082|
|Copyright © 2000 - 2009 MantisBT Group|