Hello,
I would like only the manager of a department to be able to modify the information of their team members.
I created a new group with a record rule:
[('department_id.manager_id.user_id', '=', user.id)]
This works, but with this rule, the manager could no longer see other employees' profiles. So I added:
[(1, '=', 1)]
Now it works, but the manager can see onboarding buttons and the chat on the employee form view.
How can I display a simplified, read-only view—like the one a regular employee sees when viewing another employee's profile?
Thank you in advance for your help.