← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 801017] Re: Work Orders Concatinate

 

This issue becomes a problem when you have a product that is made up of
sub assemblies.

So BOM is:
my_product ->

    part_A
    part_B ->

        part_B1
        part_B2

    part_C


my_product BOM has routing:
my_product_routing ->

    operation 1
    operation 2


part_B which is a sub assembly has its own routing in order to create the sub assembly in its own right
part_B_routing ->

    operation_x
    operation_y


When bom_explode() runs it combines the routings for both my_product and part_B:
So for work orders for the production order for my_product we get ->

    operation_1
    operation_2
    operation_x
    operation_y

This result is not what is expected as we would expect only the routing for my_product
part_B is a sub assembly and is already completed so we don't want the routing for that.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/801017

Title:
  Work Orders Concatinate

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  Using OpenERP 6.02

  When the scheduler runs it creates Manufacturing Orders as required
  In the case where a product is made up of several products ie. BOM the routings are concatenated so that the work orders for Product A (Consisting of Product C and Product D) also have the routings for Product C and D included in the Work Orders for Product A.
  Products C and D should be produced already and their Work Orders completed already. We don't need to see them again.

  The problem is in mrp.py in: def _bom_explode()

  Changed:
  if bom.routing_id:
  to:
  if bom.routing_id and not addthis:

  Reasoning is that the "addthis" variable is False by default and is only set True when called recursively
  We want to add the BOM items but not add the Routing Items

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/801017/+subscriptions


References