(edit) to rephrase a question:
- at the moment under 'timesheets' to approve user with HR-rights can see all timesheets to be approved
- for user to see only his/her timesheet, record rule should be as below:
[('employee_id.user_id','=',user.id)]
- question is: how to change above rule for user to see his/her timesteets, AND additionally timesheets of his/her subordinates?
=======
Hi,
I started to use timesheets - in general timesheets created by user are going to admin user for approval. I can say that process works (users -> approver), problem is that I can not change approver; now admin approves all timesheets, while I would to change it to other user; I wonder if it is possible to:
a) set employee superior as approver (in this case employee's line manager approves), and/or
b) set project manager as approver (in this case project manager(s) for this/those projec(s) where employee has reported hours have to approve timesheet
Are above possible? If sou, how to manage it?
--
(edit) just found that each user having 'officer' or 'manager' in 'hr' in user setup can approve timesheets; but still how to limit this possibility to people as above ('a' and/or 'b')?
--
(edit) also tried to add record rule to see if it will help me I've addedd simple:
[('employee_id.user_id','=',user.id)]
it proves it works, as now I can see only timesheets, where I am ts creator; I believe this is right place to create filter, but I do not know how to modify above rule, to achieve (a) and/or (b) from above. What are right labels to compare user ID to its manager and/or project manager?
--
Thank you in advance & regards
Tomasz