-
Committer:
Michael Telahun Makonnen
-
Date:
2013-09-21 11:31:47 UTC
-
Revision ID:
mmakonnen@gmail.com-20130921113147-q4hevb2l1t38h2fd
hr_holidays_extension: allow managers of employees and department managers to approve subordinates' leaves
To achieve this I did:
o Add a new res.groups for Leave Approval rights
o Add ir.rule to allow managers to view subordinates leave requests
o New workflow that takes into account Leave Approval rights
To allow a manager to approve subordinates' leaves you should:
o Give manager Leave Approval access rights
o Specify the employee as a department manager OR
Explicitly mark the manager as the employee's manager in the employee record
NOTE: A manager can approve anyone under him in the empoyee hierarcy. So if:
X is Y's manager and Y is Z's manager then both X and Y can approve Z's leaves