Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020665Openbravo ERPB. User interfacepublic2012-06-01 22:012012-07-30 23:35
networkb 
alostale 
urgentminoralways
closedfixed 
5
pi 
3.0MP143.0MP14 
Google Chrome
User Interface Application
No
0020665: Field/tab access don't work for saved views by default
If you have a saved customized view for a window and you set this view as default, when you try to access this window the field/tab access permission for that role are no being applied.
- Log in as Client Admin
- Go to Role window and select a Role (Role X).
- Go to Window Access tab (select Sales Order i.e) and check editable field
- Go to Tab Access tab (select or create a new record for header tab i.e) and leave checked editable field
- Go to Field Access and select or create a new record (warehouse i.e) and check editable field.
This configuration means that Role X can't edit any field of Sales Order header tab except the warehouse.
- Log in as Role X
- Go to Sales Order window - Tab Header.
- Create a new record and see that you only can modify warehouse field (so you can't save the record, it's ok)
- Go to grid mode, add a new column to the grid and save the new view (view name: TEST).
- You can see, all is working properly, if you are in TEST view, you try to create a new record and it's working properly.
- Now, set TEST as default view and close Sales Order window.
- Open Sales order window again and create a new record in form view.
- See that all the fields are accessible! is no applying AD_FIELD_ACCESS rules. It should apply the rules even if you select a new view as default for this window.
No tags attached.
Issue History
2012-06-01 22:01networkbNew Issue
2012-06-01 22:01networkbAssigned To => dbaz
2012-06-01 22:01networkbWeb browser => Google Chrome
2012-06-01 22:01networkbModules => User Interface Application
2012-06-04 08:40mtaalAssigned Todbaz => mtaal
2012-06-04 09:33alostaleAssigned Tomtaal => alostale
2012-06-25 16:38szapataIssue Monitored: szapata
2012-06-26 17:08jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-06-26 17:08jonalegriaesarteTarget Version => 3.0MP14
2012-06-27 13:03jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-06-27 13:03jonalegriaesarteNote Added: 0050189
2012-06-27 13:03jonalegriaesarteSeveritymajor => minor
2012-07-29 18:07hgbotCheckin
2012-07-29 18:07hgbotNote Added: 0050974
2012-07-29 18:07hgbotStatusnew => resolved
2012-07-29 18:08hgbotResolutionopen => fixed
2012-07-29 18:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b6862b1e8f54a76ac9c97d2a3e57299372e73b77 [^]
2012-07-30 11:53guilleaerNote Added: 0050980
2012-07-30 11:53guilleaerStatusresolved => closed
2012-07-30 11:53guilleaerFixed in Version => 3.0MP14
2012-07-30 23:35hudsonbotCheckin
2012-07-30 23:35hudsonbotNote Added: 0051019

Notes
(0050189)
jonalegriaesarte   
2012-06-27 13:03   
Scheduled to MP14
(0050974)
hgbot   
2012-07-29 18:07   
Repository: erp/devel/pi
Changeset: b6862b1e8f54a76ac9c97d2a3e57299372e73b77
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Sun Jul 29 18:07:15 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b6862b1e8f54a76ac9c97d2a3e57299372e73b77 [^]

Fixes issue 20665: Field access works with saved views

Changed the access to the tab fields. Instead of accessing directly to the fields property, now the access is done through the getFields() function.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
(0050980)
guilleaer   
2012-07-30 11:53   
Code reviewed and tested in pi@b6862b1e8f54
(0051019)
hudsonbot   
2012-07-30 23:35   
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/1555c04652b7 [^]

Maturity status: Test