تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6632 أدوات العرض

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
فبراير 19
4382
2
أغسطس 16
3461
2
سبتمبر 15
5155
1
يوليو 25
617
0
مايو 25
1188