Skip to content

Commit

Permalink
TA#65860 [FIX] project_material: Access to window's action (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored May 27, 2024
1 parent 847a9dd commit 849df85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_material/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 849df85

Please sign in to comment.