From 27da2eb070ff97ecba498e35f110d9fb8c9575eb Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 14 Mar 2019 14:01:15 +0100 Subject: [PATCH] [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. --- addons/hr_payroll/security/ir.model.access.csv | 2 ++ 1 file changed, 2 insertions(+) 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