diff options
| author | Jeremy Kersten <jke@odoo.com> | 2018-08-15 14:21:10 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-08-15 16:23:23 +0200 |
| commit | d5b0f99943b1d839b930b436a8fa330b567f98ed (patch) | |
| tree | 2d122d0e97000b2ef7725184bdfda9d60f375199 | |
| parent | 7341f33f16caf369d5b546a2c5b4caa352e62e65 (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)
| -rw-r--r-- | addons/hr/security/hr_security.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml index 5b332251eff..a93fbb035fe 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> |
