The proposal to merge lp:~openerp-dev/openerp-web/trunk-access-ui-jam into
lp:openerp-web has been updated.
Description changed to:
Goal: don't show some buttons when the user does not have the corresponding
access rights.
Example: "Create" not shown when user does not have ACL with "create" on the
model.
How: the server decorates the toplevel view elements (form, tree, kanban, etc.)
with attributes create, edit, delete; they are set to "false" when user does
not have the corresponding access rights.
The views now have a method _is_action_enabled(action) that tests whether the
action ('create', 'edit' or 'delete') is allowed (by checking the corresponding
attribute in the toplevel element of the view).
For elements inserted by code, the code is enriched with a test on that new
method. Other elements (like drag-and-drop handles and trash cans) are hidden
by css: the classes oe_list_cannot_create, oe_list_cannot_edit,
oe_list_cannot_delete are added to the list when the user does not have the
corresponding permissions.
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-access-ui-jam/+merge/120483
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-access-ui-jam/+merge/120483
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-access-ui-jam.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp