Skip to Content
Menú
This question has been flagged

In Odoo 18, users who are not followers of a project cannot see that project on the kanban view (model project.project). However, I want users to be able to see projects if they have tasks assigned to them, even if they are not followers of the project.

Current behavior:

  • If User A is not a follower of Project X, Project X does not appear on the kanban view.
  • But if Task 1 (under Project X) is assigned to User A, they can only see the task via "My Tasks", not the project itself.

What I want to achieve:

  • If a user has any task assigned under a project, that project should be visible in the project kanban view.
  • The user should still only see the tasks that are assigned to them (not all tasks in the project), but the project should at least appear.

 

How can I allow users to see projects if they are assigned to at least one task in that project, regardless of their follower status?

Avatar
Descartar
Best Answer

Hello Baki Imam ,

You need to customize the record rule domain used for displaying projects on the Kanban view, so that users can also see projects where they have assigned tasks — even if they're not followers of the project.

🔧Solution:

1. Odoo Default Record Rule :

🖼

2. Customized Record Rule (Updated Domain) :

Update the domain to also check if the user has assigned tasks under that project.

🖼️ 

['|','|', 
     ('privacy_visibility', '!=', 'followers'),
     ('message_partner_ids', 'in', [user.partner_id.id]),
     ('task_ids.user_ids', 'in', [user.id])
   ]

With this domain, projects will appear if:

  • The user is a follower OR
  • The user has assigned tasks

If you have any questions, feel free to reach out to us


Hope this helps!


Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de febr. 22
2975
1
de set. 24
1115
3
de febr. 24
1372
0
de jul. 23
4
2
de nov. 19
4752