Skip to Content
Menu
This question has been flagged

Hey

so, I have this hierarchy in employees module:

HR who is the admin, he should see everyone (all good)

        Supervisors should only see their employees, as for Supervisor1 should only see (employee1, elployee2, elployee3) and Supervisor2 should only see (employee4, emlpoyee5, employee6) in kiosk mode (attendances)

how do I get the supervisors to only see their employees in Attendances

thank you

Avatar
Discard
Best Answer

Hi,

You can achieve this with record rules,

If managers can see only the employees under him in the attendance you can use the domain below,


[('employee_id.parent_id.user_id', '=', user.id)]


To know more refer,

https://www.youtube.com/watch?v=p8gj1dEfYUM

https://www.cybrosys.com/blog/allow-managers-only-to-access-their-subordinate-data-odoo-13

Avatar
Discard
Related Posts Replies Views Activity
1
May 24
242
2
Apr 24
1610
0
Nov 22
752
0
Nov 22
1462
0
Jun 22
759