Fix product assignation when no product are available.

This commit is contained in:
Bertrand Chenal committed 2008-05-16 01:50:11 +02:00
1 parent 26da9b5799
commit d6ed2a7d0d
1 file changed
+2 -1
+2 -1
View File
@@ -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))