Skip to content
Snippets Groups Projects
Commit fa561f5c authored by Cédric Snauwaert's avatar Cédric Snauwaert
Browse files

[FIX] wms: fix lookup of xmlid route_warehouse0_buy

Fixes #2610 courtesy of gurneyalex
parent 4614fdf7
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ class stock_warehouse(osv.osv):
route_obj = self.pool.get('stock.location.route')
data_obj = self.pool.get('ir.model.data')
try:
buy_route_id = data_obj.get_object_reference(cr, uid, 'stock', 'route_warehouse0_buy')[1]
buy_route_id = data_obj.get_object_reference(cr, uid, 'purchase', 'route_warehouse0_buy')[1]
except:
buy_route_id = route_obj.search(cr, uid, [('name', 'like', _('Buy'))], context=context)
buy_route_id = buy_route_id and buy_route_id[0] or False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment