summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-08-15 14:21:10 +0200
committerJeremy Kersten <jke@odoo.com>2018-09-13 17:26:32 +0200
commit5cfd3d5fa022e8cafb3da3d2468cc8364f0e47b3 (patch)
tree0d6cfa0510b1310e46537e50b33265e5c6690be2
parentd76cd50f0e02fee082017c77734eb90ce49f9c6d (diff)
[FIX] hr: security - an officier is an employee/internal user
Tests from hr_recruitments work luckily until now. Because module maintenance imply base.group_user for group_equipment_manager <record id="group_equipment_manager" model="res.groups"> ... <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> </record> and module hr_maintenante imply group_equipment_manager for hr_user <record id="hr.group_hr_user" model="res.groups"> <field name="implied_ids" eval="[(4, ref('maintenance.group_equipment_manager'))]"/> </record> After this commit launch test on hr_recruitment module without any other module will works. Design-theme repo show this error because repo tests hr_recruitment without installing maintenance (Repo install website_* modules -> website_hr_recruitment -> hr_recruitment -> hr) Backport-of d5b0f99943b1d839b930b436a8fa330b567f98ed to have runbot design-theme green
-rw-r--r--addons/hr/security/hr_security.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml
index 819a616b103..0fa93176aad 100644
--- a/addons/hr/security/hr_security.xml
+++ b/addons/hr/security/hr_security.xml
@@ -4,7 +4,7 @@
<record id="group_hr_user" model="res.groups">
<field name="name">Officer</field>
<field name="category_id" ref="base.module_category_human_resources"/>
- <field name="implied_ids" eval="[(4, ref('base.group_private_addresses'))]"/>
+ <field name="implied_ids" eval="[(6, 0, [ref('base.group_private_addresses'), ref('base.group_user')])]"/>
<field name="comment">The user will be able to approve document created by employees.</field>
</record>