Skip to Content
Menu
This question has been flagged
2 Replies
2124 Views

Hello, I'm using odoo14 community and I want to let user see only the tasks are assigned to him or he is a follower on them.
Solutions I tried with it:
I removed this record rule from Internal User group:
Project/Task: employees: follow required for follower-only projects [('project_id.privacy_visibility', '!=', 'followers')]
And add this record rule to project/user group:
[("user_id","=",user.id)]
In this way the user see only his tasks (assigned to him) without tasks that he is a follower on them.

What is the rule record that achive the user see both his tasks and tasks that he is a follower on them?

Avatar
Discard
Best Answer

You can try the below:

['|', ("user_id","=",user.id) , ('message_partner_ids', 'in', [user.partner_id.id])]


Avatar
Discard
Author Best Answer

Thanks CorTex , It works fine.

Avatar
Discard
Related Posts Replies Views Activity
1
Jan 22
1375
2
Jul 24
225
1
Aug 17
4456
1
Oct 24
577
0
Oct 15
3331