diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-05 15:09:57 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-19 09:35:31 +0100 |
| commit | 29633756b08bf6380fd2ee49718b1403cd36e9e5 (patch) | |
| tree | 3bcab9bf87dd11acf1fef6f0353857d3708e7f26 /addons/hr_contract/security/security.xml | |
| parent | a9f97a2c4342358c388558f0bf9ecc8ab787f399 (diff) | |
[FIX] hr_contract: Allow contract managers to manage employee
Contract managers should be able to create/manager employees.
This make sense when a contract manager hires someone.
He first creates the employee, then his contract.
This also allows contract managers to access private addresses
by transitivity.
This is also intended to allow a contract manager to set
a driver (private partner) on the employee's company car
or to access `km_home_work` for transport reimbursment
(l10n_be_hr_payroll).
Diffstat (limited to 'addons/hr_contract/security/security.xml')
| -rw-r--r-- | addons/hr_contract/security/security.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_contract/security/security.xml b/addons/hr_contract/security/security.xml index d238df3b49a..d592b820a16 100644 --- a/addons/hr_contract/security/security.xml +++ b/addons/hr_contract/security/security.xml @@ -9,7 +9,7 @@ <record id="hr_contract.group_hr_contract_manager" model="res.groups"> <field name="name">Administrator</field> <field name="category_id" ref="base.module_category_human_resources_contracts"/> - <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> + <field name="implied_ids" eval="[(4, ref('base.group_user')), (4, ref('hr.group_hr_user'))]"/> <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> </record> |
