Fix product assignation when no product are available.
This commit is contained in:
1 parent
26da9b5799
commit
d6ed2a7d0d
1 file changed
+2
-1
+2
-1
@@ -536,7 +536,8 @@ class PackingOut(OSV):
|
||||
for location in parent_to_locations[move.from_location.id]:
|
||||
qty = self._location_amount(
|
||||
cursor, user, move.uom.id,
|
||||
processed_data[(move.from_location.id, move.product.id)],
|
||||
processed_data.get(
|
||||
(move.from_location.id, move.product.id), []),
|
||||
uom_index, context=context,)
|
||||
location_qties.append((location, qty))
|
||||
|
||||
|
||||
Reference in new issue
Block a user