Skip to content
Snippets Groups Projects
Commit 05905b79 authored by vnsofthe's avatar vnsofthe Committed by Martin Trigaux
Browse files

[FIX] mrp: xmlid of Manufacture route

Is present in mrp and not stock module.
parent 816faf13
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ class stock_warehouse(osv.osv):
route_obj = self.pool.get('stock.location.route')
data_obj = self.pool.get('ir.model.data')
try:
manufacture_route_id = data_obj.get_object_reference(cr, uid, 'stock', 'route_warehouse0_manufacture')[1]
manufacture_route_id = data_obj.get_object_reference(cr, uid, 'mrp', 'route_warehouse0_manufacture')[1]
except:
manufacture_route_id = route_obj.search(cr, uid, [('name', 'like', _('Manufacture'))], context=context)
manufacture_route_id = manufacture_route_id and manufacture_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