diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-03-14 14:01:15 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-19 09:35:31 +0100 |
| commit | 27da2eb070ff97ecba498e35f110d9fb8c9575eb (patch) | |
| tree | 44a6ebc122c7a71a11e723c57c1b43c2bcfed208 | |
| parent | dc19707baa167c58c845be3dbf1b169b7faeff7a (diff) | |
[FIX] hr_payroll: Allow a contract manager to read salary structures
An employee with only the contract user group should be able to create
a contract. It implies to be able to read a salary structure and
a salary structure type.
| -rw-r--r-- | addons/hr_payroll/security/ir.model.access.csv | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/hr_payroll/security/ir.model.access.csv b/addons/hr_payroll/security/ir.model.access.csv index 3f5f0d5ba4f..0e79d63a29d 100644 --- a/addons/hr_payroll/security/ir.model.access.csv +++ b/addons/hr_payroll/security/ir.model.access.csv @@ -1,6 +1,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_payroll_structure,hr.payroll.structure,model_hr_payroll_structure,hr_payroll.group_hr_payroll_user,1,1,1,1
access_hr_payroll_structure_hr_user,hr.payroll.structure.hr.user,model_hr_payroll_structure,hr.group_hr_user,1,0,0,0
+access_hr_payroll_structure_hr_contract_manager,hr.payroll.structure.hr.contract.manager,model_hr_payroll_structure,hr_contract.group_hr_contract_manager,1,0,0,0
access_hr_contribution_register,hr.contribution.register,model_hr_contribution_register,hr_payroll.group_hr_payroll_user,1,1,1,1
access_hr_salary_rule_category,hr.salary.rule.category,model_hr_salary_rule_category,hr_payroll.group_hr_payroll_user,1,1,1,1
access_hr_payslip,hr.payslip,model_hr_payslip,hr_payroll.group_hr_payroll_user,1,1,1,1
@@ -14,3 +15,4 @@ access_hr_work_entry_type_officer,access_hr_work_entry_type_officer,model_hr_wor access_hr_work_entry_employee,hr.work.entry.employee,model_hr_user_work_entry_employee,group_hr_payroll_user,1,1,1,1
access_hr_work_entry_type_manager,access_hr_work_entry_type_manager,model_hr_work_entry_type,group_hr_payroll_manager,1,1,1,1
access_hr_payroll_structure_type,hr.payroll.structure.type,model_hr_payroll_structure_type,hr_payroll.group_hr_payroll_user,1,1,1,1
+access_hr_payroll_structure_type_hr_contract_manager,hr.payroll.structure.type.contract.manager,model_hr_payroll_structure_type,hr_contract.group_hr_contract_manager,1,0,0,0
|
