Odoo Help


Timesheet Activities show all entries to all users, permissions?

Mark Leemans
on 9/21/15, 3:52 AM 1,348 views

I'm using timesheet -> activities (account.analytic.line fields?) to let users log their activities with the duration of this activity. The problem is that all users can see all entries from all users and also can edit this! 

This list should only show their own entries, how can I fix this? (Default filter?) So the user only can see and edit their own entries.


On 9/21/15, 5:22 AM


You can add a rule for "account.analytic.line" with domain [('create_uid', '=', user.id)]


Override the action for "Timesheet Activities" and add a filter(domain, same as above) to that action.


Mark Leemans
On 9/21/15, 6:58 AM

Thanks, with that rule all of the entries are still visible for other users and also the weekly view is not available anymore. So it's not what I'm looking for.

Only the users own submissions should be visible and editable. 

i think i misunderstood you, are you talking about Timesheet Activities(Human Resource -> Time tracking -> Timesheet Activities), if yes, then that object is "hr.analytic.timesheet" not "account.analytic.line"
You can apply that same rule/filter on "hr.analytic.timesheet" object which you applied on "account.analytic.line" previously

on 9/24/15, 6:19 AM

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: 9/21/15, 3:52 AM
Seen: 1348 times
Last updated: 9/24/15, 3:30 AM