From d741548abc343c63da745a9b82dde9fb87546bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 15 Jun 2011 12:01:44 +0200 Subject: [PATCH] Backed out changeset 58be4bdca2af --- product.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product.py b/product.py index db21290530..27a2ad90a0 100644 --- a/product.py +++ b/product.py @@ -184,11 +184,10 @@ class Product(ModelSQL, ModelView): # Skip warehouse location in favor of their storage location # to compute quantities. Keep track of which ids to remove # and to add after the query. - locations = location_obj.browse(location_ids) location_ids = set(location_ids) storage_to_remove = set() wh_to_add = {} - for location in locations: + for location in location_obj.browse(location_ids): if (location.type == 'warehouse' and Transaction().context.get('stock_skip_warehouse')): location_ids.remove(location.id)