跳至内容
菜单
此问题已终结
3742 查看

Hello everybody 

i have a record rule that makes me see the attendances of my department and my childs departments

['|',('employee_id.user_id','=',user.id),('employee_id.department_id','child_of',[user.employee_ids[0].department_id.id])]

i m having the correct result in attendance module , but this record rule also limits my rights in employee module 

and i m getting this error:

(Type de document : hr.attendance, Opération : read)




形象
丢弃

Give Access Right On ir.security.csv file

For Example,

access,model_demo_access_rights,user_access_rights_demo.group_user,1,1,1,0

Base on Your Requirements

Thanks

编写者

thank you man for your reply but it didn't work.

Because the hr.officer groups they already have all the rights for attendance object

and they inherit from hr.officer so they have the rights for employee object