[trunk/7.0/6.1] mrp: production location should be taken first from routing

Bug #1252652 reported by Jordi Llinares - KM Sistemas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

By default, when confirming a manufacturing order, OpenERP creates consume and produce moves in _make_production_produce_line and _make_production_consume_line methods. These methods take production location from each product's "default production location" field.

IMHO, if the production has a routing assigned, and the routing was defined with a specific production location, this location should be the first choice production location. The field for the default production location in the product's form is useful when you don't want to specify a production location for a routing. But mrp.routing_id.location_id should always be the first option (if defined).

Maybe this issue is (conceptually) slightly related to bug #1249258, since neither in that bug the production location for a particular manufacturing order's routing wasn't kept into account, which in that case derived into a bug related to subcontracted manufacturing.

I attached a proposed enhancement patch.

Related branches

Revision history for this message
Jordi Llinares - KM Sistemas (jorgellinares-deactivatedaccount) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.