From d6ed2a7d0df26f63f5fd0e90bd844cb7ecc408f3 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Fri, 16 May 2008 01:50:11 +0200 Subject: [PATCH] Fix product assignation when no product are available. --- packing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packing.py b/packing.py index 6e82872a6d..baf41a37fb 100644 --- a/packing.py +++ b/packing.py @@ -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))