[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.
This commit is contained in:
Yannick Tivisse
2019-03-19 09:35:31 +01:00
parent dc19707baa
commit 27da2eb070
@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_payroll_structure hr.payroll.structure model_hr_payroll_structure hr_payroll.group_hr_payroll_user 1 1 1 1
3 access_hr_payroll_structure_hr_user hr.payroll.structure.hr.user model_hr_payroll_structure hr.group_hr_user 1 0 0 0
4 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
5 access_hr_contribution_register hr.contribution.register model_hr_contribution_register hr_payroll.group_hr_payroll_user 1 1 1 1
6 access_hr_salary_rule_category hr.salary.rule.category model_hr_salary_rule_category hr_payroll.group_hr_payroll_user 1 1 1 1
7 access_hr_payslip hr.payslip model_hr_payslip hr_payroll.group_hr_payroll_user 1 1 1 1
15 access_hr_work_entry_employee hr.work.entry.employee model_hr_user_work_entry_employee group_hr_payroll_user 1 1 1 1
16 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
17 access_hr_payroll_structure_type hr.payroll.structure.type model_hr_payroll_structure_type hr_payroll.group_hr_payroll_user 1 1 1 1
18 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