Skip to content

Commit

Permalink
Merge PR #1277 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Apr 19, 2023
2 parents bacf25b + 09cf275 commit dc506c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion stock_picking_batch_extended/models/stock_batch_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def action_view_stock_picking(self):
"""
self.ensure_one()
pickings = self.mapped("picking_ids")
action = self.env.ref("stock.action_picking_tree_all").read([])[0]
action = self.env["ir.actions.act_window"]._for_xml_id(
"stock.action_picking_tree_all"
)
action["domain"] = [("id", "in", pickings.ids)]
return action
4 changes: 2 additions & 2 deletions stock_picking_batch_extended/wizard/stock_picking_to_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def action_create_batch(self):

def action_view_batch_picking(self, batch_pickings):
if len(batch_pickings) > 1:
action = self.env.ref(
action = self.env["ir.actions.act_window"]._for_xml_id(
"stock_picking_batch.stock_picking_batch_action"
).read()[0]
)
action["domain"] = [("id", "in", batch_pickings.ids)]
else:
action = batch_pickings.get_formview_action()
Expand Down

0 comments on commit dc506c5

Please sign in to comment.