From 6aab29c97c13e6c80059074e3816c457cded52f0 Mon Sep 17 00:00:00 2001 From: luve-odoo Date: Thu, 26 Oct 2023 14:03:03 +0200 Subject: [PATCH] [FIX] project : portal user view parent task How to reproduce the bug : - Go to one project from portal user - Open a task - Create a subtask of this task - Open the subtask - Click on "Parent Task" button => Traceback Fix : - The search view is not loaded when opening the parent task - We add manually the search view id in the action opening the parent taskid:3551354 closes odoo/odoo#156183 X-original-commit: 536638a92d6d7b242e27ae6f73431c61267b4eeb Signed-off-by: Xavier Bol (xbo) --- addons/project/models/project_task.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/project/models/project_task.py b/addons/project/models/project_task.py index 0322d0975ed..c590d321c0f 100644 --- a/addons/project/models/project_task.py +++ b/addons/project/models/project_task.py @@ -1567,6 +1567,7 @@ class Task(models.Model): 'search_view_ref': 'project.project_sharing_project_task_view_search', }).action_open_parent_task() action['views'] = [(self.env.ref('project.project_sharing_project_task_view_form').id, 'form')] + action['search_view_id'] = self.env.ref("project.project_sharing_project_task_view_search").id return action # ------------