跳至内容
菜单
此问题已终结
2 回复
6476 查看

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.

Thanks

形象
丢弃
最佳答案

Mark,

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

Or

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

Regards

形象
丢弃
编写者 最佳答案

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. 

形象
丢弃

Mark,
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

相关帖文 回复 查看 活动
0
2月 19
4168
2
8月 16
3324
2
9月 15
5044
1
7月 25
440
0
5月 25
982