diff --git a/addons/project/models/project.py b/addons/project/models/project.py index 659290d0eef..a4dc67ee9ff 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -948,7 +948,7 @@ class Task(models.Model): subtask_planned_hours = fields.Float("Sub-tasks Planned Hours", compute='_compute_subtask_planned_hours', help="Sum of the time planned of all the sub-tasks linked to this task. Usually less than or equal to the initially planned time of this task.") # Tracking of this field is done in the write function - user_ids = fields.Many2many('res.users', relation='project_task_user_rel', column1='task_id', column2='user_id', string='Assignees') + user_ids = fields.Many2many('res.users', relation='project_task_user_rel', column1='task_id', column2='user_id', string='Assignees', context={'active_test': False}) # User names displayed in project sharing views portal_user_names = fields.Char(compute='_compute_portal_user_names', compute_sudo=True, search='_search_portal_user_names') # Second Many2many containing the actual personal stage for the current user diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 35f0b1b48f6..5f1d0056f11 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -18,7 +18,7 @@ - + @@ -929,7 +929,7 @@ class="o_task_user_field" options="{'no_open': True}" widget="many2many_avatar_user" - domain="[('share', '=', False)]"/> + domain="[('share', '=', False), ('active', '=', True)]"/> @@ -959,7 +959,7 @@ - + @@ -976,7 +976,7 @@ - + @@ -1088,7 +1088,7 @@
- @@ -1218,7 +1218,7 @@ - +