This question has been flagged
2 Replies
1882 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