Skip to Content
Menu
This question has been flagged
1 Reply
3980 Views

Hello,

I started working with Odoo v.8, and I have a little trouble with the double validation leave and in particular with the validation of the superior/manager. With the double validation, the supervisor/manager and the HR manager must both validate the leave request. In orther for the supervisor to validate, I give him the access right "Officer" in human resources. there he can see leave requests of his subordinates, but the problem is that he can also see requests of all employees in all departments.

I would like to know, how to do so the manager could only see leave requests of employees of which he is responsible. 

Thank you.

Avatar
Discard
Best Answer

This requires a rule, access rights, and the employee heirarchy filled out under Human Resources.

  1. Make a user a manager
  2. Then when you record a rule set parent.id = manager.user.id
  3. Also add user.id = manager.user.id

The parent.id is referencing the employee's manager under the Human Resources section. The user.id = manager.user.id is checking if the current user's id matches the manager's id.

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 24
397
4
Nov 23
4244
0
Oct 23
377
0
Dec 22
1334
2
Dec 23
17348