[FIX] hr: settings user doesn't have access to hr.employee
The field pos_employee_ids (pos_hr) links hr employees records to settings records but this model isn't readable for Pos Administrators by default. This commit gives read rights on hr.employee model to settings users, reusing a confusing existing ACL whose name targeted system users, whereas the group effectively targeted was the internal users. Since this rule didn't give any rights, we might as well correctly replace it so that the name can match its purpose. Part-of: odoo/odoo#91909
This commit is contained in:
@@ -2,7 +2,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_hr_employee_category_user,hr.employee.category.user,model_hr_employee_category,group_hr_user,1,1,1,1
|
||||
access_hr_employee_category_emp,hr.employee.category.emp,model_hr_employee_category,base.group_user,1,0,0,0
|
||||
access_hr_employee_user,hr.employee user,model_hr_employee,group_hr_user,1,1,1,1
|
||||
access_hr_employee_system_user,hr.employee system user,model_hr_employee,base.group_user,0,0,0,0
|
||||
access_hr_employee_system_user,hr.employee system user,model_hr_employee,base.group_system,1,0,0,0
|
||||
access_hr_employee_public_user,hr.employee_public,model_hr_employee_public,base.group_user,1,0,0,0
|
||||
access_hr_employee_resource_user,resource.resource.user,resource.model_resource_resource,group_hr_user,1,1,1,1
|
||||
access_hr_department_user,hr.department.user,model_hr_department,group_hr_user,1,1,1,1
|
||||
|
||||
|
Reference in New Issue
Block a user