Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

timesheet approver

By
TS
on 10/5/15, 3:42 PM 395 views

(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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/5/15, 3:42 PM
Seen: 395 times
Last updated: 10/8/15, 10:09 AM