mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Prevent crash if 2 packages have the same name
This commit is contained in:
@@ -117,7 +117,7 @@ class VerticalLiftOperationPut(models.Model):
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user