Skip to content

Commit

Permalink
Prevent crash if 2 packages have the same name
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Jul 23, 2020
1 parent 44a774c commit c50641f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_vertical_lift/models/vertical_lift_operation_put.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _find_move_line(self, barcode):

def _find_move_line_for_package(self, package):
domain = AND(
[self._domain_move_lines_to_do_all(), [("package_id", "=", package.id)]]
[self._domain_move_lines_to_do_all(), [("package_id", "in", package.ids)]]
)
return self.env["stock.move.line"].search(domain, limit=1)

Expand Down

0 comments on commit c50641f

Please sign in to comment.