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:
b14883f
)
[FIX] stock: wh_route_ids not defined
author
Quentin (OpenERP)
<qdp-launchpad@openerp.com>
Tue, 8 Apr 2014 06:52:44 +0000
(08:52 +0200)
committer
Quentin (OpenERP)
<qdp-launchpad@openerp.com>
Tue, 8 Apr 2014 06:52:44 +0000
(08:52 +0200)
bzr revid: qdp-launchpad@openerp.com-
20140408065244
-bw2fry18hf5e2x71
addons/stock/stock.py
patch
|
blob
|
history
diff --git
a/addons/stock/stock.py
b/addons/stock/stock.py
index
3edeee1
..
5b914b4
100644
(file)
--- a/
addons/stock/stock.py
+++ b/
addons/stock/stock.py
@@
-1799,6
+1799,7
@@
class stock_move(osv.osv):
rules = push_obj.search(cr, uid, domain + [('route_id', 'in', route_ids)], order='route_sequence, sequence', context=context)
if not rules:
#then we search on the warehouse if a rule can apply
+ wh_route_ids = []
if move.warehouse_id:
wh_route_ids = [x.id for x in move.warehouse_id.route_ids]
elif move.picking_type_id and move.picking_type_id.warehouse_id: