Odoo Help


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.


Suppressing the possibility for an employee to seize timesheet for another

Prosper G. Nitcheu
on 2/14/13, 4:12 PM 1,481 views

Is it possible to suppress the possibility for an employee to seize timesheet for another employee ? I'd like to maintain this functionnality only for the HR Manager / Officer groups. Thanks

Maxime Chambreuil
On 3/25/13, 10:08 PM

On the group, you can create a rule to give users access to its timesheet only: [('user_id', '=', user.id)]

There is already the same rule set on the Employee group.

Giulio Marcon
On 6/3/13, 4:16 PM

The default rule is just set for the object "hr.analytic.timesheet".

If you want to block a user from entering the timesheet for another user in the view "Time Tracking > My Current Timesheet" you have to create a new rule under Settings > Technical > Security > Record Rules: - Object: hr_timesheet_sheet.sheet - Access rights: Apply for Read / Write / Create / Delete - Rule definition: [('user_id', '=', user.id)] - Groups: Human Resources / Employee

If you want to let the HR Manager to enter timesheets for any user with the same menu, you have to create a similar rule with rule definition [(1, '=', 1)] and group Human Resources / Manager.

Thank you for your response. I tried this but when i log in as an employee, i continue to have the possibility to select another employee and enter timesheet for the selected employee, although i restarted openerp. I'm using openerp v7

CPG Consulting, Prosper Guena Nitcheu
on 6/18/13, 6:58 PM

I apologize. I can enter timesheet for another employee on the screen but cannot validate. Is it then possible to restrict the possibility of selecting another employee in the select box ?

CPG Consulting, Prosper Guena Nitcheu
on 6/19/13, 9:27 AM

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)


Asked: 2/14/13, 4:12 PM
Seen: 1481 times
Last updated: 3/16/15, 8:10 AM