Skip to content
Snippets Groups Projects
Commit 35392213 authored by Nans Lefebvre's avatar Nans Lefebvre
Browse files

[FIX] resource: give admin rights to edit global leaves


Commit 27d41ccb introduced record rules on resource.calendar.leaves.
However it gave no way to create, edit or delete a global rule.
We grant this right to the group_erp_manager, so that an admin can do it.

opw 1968376

closes odoo/odoo#32832

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 3f681b20
Branches
Tags
No related merge requests found
......@@ -19,5 +19,13 @@
<field name="domain_force">[('resource_id.user_id', '=', user.id)]</field>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.rule" id="resource_calendar_leaves_rule_group_admin_modify">
<field name="name">resource.calendar.leaves: admin modifies global</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
<field name="domain_force">[('resource_id', '=', False)]</field>
<field name="perm_read" eval="False"/>
</record>
</data>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment