[FIX] stock: wh_route_ids not defined

bzr revid: qdp-launchpad@openerp.com-20140408065244-bw2fry18hf5e2x71
This commit is contained in:
Quentin (OpenERP) 2014-04-08 08:52:44 +02:00
parent b14883f10c
commit 1e07ab4d36
1 changed files with 1 additions and 0 deletions

View File

@ -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: