summaryrefslogtreecommitdiff
path: root/addons/resource
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2019-05-02 09:42:08 +0200
committerDenis Ledoux <dle@odoo.com>2019-05-02 09:45:14 +0200
commitfd0a10026c06315b4fbe520a7a3604a6b395f54a (patch)
tree5a7183126ed508303bdab7a31d3691c75e6d9b4a /addons/resource
parent27eb8ba61798e7bc65bb75becc3f89c839a61996 (diff)
parentb11930047f6652ccf03963c3f18a2a38c502b652 (diff)
[MERGE] forward port branch saas-12.1 up to b11930047f6
Diffstat (limited to 'addons/resource')
-rw-r--r--addons/resource/security/resource_security.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/resource/security/resource_security.xml b/addons/resource/security/resource_security.xml
index e26ed21379a..85c628faa47 100644
--- a/addons/resource/security/resource_security.xml
+++ b/addons/resource/security/resource_security.xml
@@ -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>