projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39615d6
)
[IMP] Improve the code
author
Hiral Patel (OpenERP)
<hip@tinyerp.com>
Thu, 31 Jan 2013 09:53:36 +0000
(15:23 +0530)
committer
Hiral Patel (OpenERP)
<hip@tinyerp.com>
Thu, 31 Jan 2013 09:53:36 +0000
(15:23 +0530)
bzr revid: hip@tinyerp.com-
20130131095336
-317ww7oe391tg2wk
addons/stock/product.py
patch
|
blob
|
history
diff --git
a/addons/stock/product.py
b/addons/stock/product.py
index
1d56ce6
..
ba855e0
100644
(file)
--- a/
addons/stock/product.py
+++ b/
addons/stock/product.py
@@
-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):