Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3792 Visualizzazioni

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)




Avatar
Abbandona

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

Autore

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