Use list of ids for browse instead of set
This commit is contained in:
1 parent
4a38891fb6
commit
6a72f2dfca
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user