From 849df8522de2790be3508de1b275a2d967b4d766 Mon Sep 17 00:00:00 2001 From: Majda EL MARIOULI Date: Mon, 27 May 2024 11:12:45 -0400 Subject: [PATCH] TA#65860 [FIX] project_material: Access to window's action (#393) --- project_material/models/project_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_material/models/project_task.py b/project_material/models/project_task.py index 49d15065..44f00805 100644 --- a/project_material/models/project_task.py +++ b/project_material/models/project_task.py @@ -175,7 +175,7 @@ def _open_stock_pickings_view_from_task(self, pickings): This method is intended to be inherited to show the list/form view of different types of picking related to the task. """ - action = self.env.ref("stock.action_picking_tree_all").read()[0] + action = self.env.ref("stock.action_picking_tree_all").sudo().read()[0] if len(pickings) > 1: action["domain"] = [("id", "in", pickings.ids)]