use warehouse._get_mto_route to get the MTO route

instead of using a custom lookup with a different implementation
closes #2608
me2

On Mon, Sep 22, 2014 at 3:34 PM, Alexandre Fayolle <notifications@github.com
> wrote:

> In addons/mrp/mrp.py:
>
> >          try:
> > -            mto_route = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'stock', 'route_warehouse0_mto')[1]
> > +            mto_route = warehouse_obj._get_mto_route(cr, uid, context)
>
> I'll do the change, but I'm not convinced of the "better-ness" of this...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/odoo/odoo/pull/2613/files#r17848612>.
>