From 6a72f2dfcacbdd6e0f40beccd43d54c2b7f69b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 15 Jun 2011 12:03:16 +0200 Subject: [PATCH] Use list of ids for browse instead of set --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index 27a2ad90a0..6326d2b6a8 100644 --- a/product.py +++ b/product.py @@ -187,7 +187,7 @@ class Product(ModelSQL, ModelView): location_ids = set(location_ids) storage_to_remove = set() wh_to_add = {} - for location in location_obj.browse(location_ids): + for location in location_obj.browse(list(location_ids)): if (location.type == 'warehouse' and Transaction().context.get('stock_skip_warehouse')): location_ids.remove(location.id)