Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3097 Vistas

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
Descartar
Mejor respuesta

You can try the below:

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


Avatar
Descartar
Autor Mejor respuesta

Thanks CorTex , It works fine.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 22
2364
2
jul 24
1546
1
ago 17
5592
1
oct 24
2957
0
oct 15
4331