[IMP] Improve the code

bzr revid: hip@tinyerp.com-20130131095336-317ww7oe391tg2wk
This commit is contained in:
Hiral Patel (OpenERP)
2013-01-31 15:23:36 +05:30
parent 39615d61a7
commit 6d9b41b3bf
+2 -2
View File
@@ -235,10 +235,10 @@ class product_product(osv.osv):
else:
location_ids = []
wids = warehouse_obj.search(cr, uid, [], context=context)
if not wids:
return res
for w in warehouse_obj.browse(cr, uid, wids, context=context):
location_ids.append(w.lot_stock_id.id)
else:
return res
# build the list of ids of children of the location given by id
if context.get('compute_child',True):