Odoo Help


Suppressing the possibility for an employee to seize timesheet for another

Prosper G. Nitcheu
on 2/14/13, 4:12 PM 2,134 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

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
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.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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