Skip to content

Commit

Permalink
[FIX] get view pickings
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocorato committed Nov 27, 2024
1 parent 31d4645 commit a61d2aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def action_view_subcontract_picking(self):
if len(pickings) > 1:
action["domain"] = [("id", "in", pickings.ids)]
elif len(pickings) == 1:
action["views"] = [(self.env.ref("stock.action_picking_form").id, "form")]
action["views"] = [(self.env.ref("stock.view_picking_form").id, "form")]
action["res_id"] = pickings[0].id
else:
action = {"type": "ir.actions.act_window_close"}
Expand Down

0 comments on commit a61d2aa

Please sign in to comment.