← Back to team overview

openerp-india team mailing list archive

[Bug 985525] Re: MRP : check_product very strict - BoM line product should not be same as BoM product.

 

Hello an thanks for your answer,

Yes there are problem with no check on change parent bom.

But my problem is not really that.
In your video, you create bomA on product « [led] elec card »  and two component each on product « [led] led sub prod ».
My scenario is : 
- create bomA on product « [led] elec card » 
- create component 1 on  product « [card1] card »
- create component 2 on  product « [card2] card »
- create subcomponent 11 (component of component 1) on product « [led] led sub prod »
 ( at this step normally all is OK but i will use bom component menu or field parent bom )
- create subcomponent 22 (component of component 2) on product « [led] led sub prod »
 (with special manipulation used to make that, you don't have any alert)
We can see our bomA is no respect check_product constraint when we want to edit it.
For me bomA is OK and check_product is too strict because subsubcomponent may have same product association that an other subsubcomponent.

More clearly, I have modify check_product to have a recursion with depth
limit at one.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/985525

Title:
  MRP : check_product very strict - BoM line product should not be same
  as BoM product.

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  In openerp 6.1 on module MRP, there are a function to check product on BoM.
  BoM can't contained two lines or sublines with same product.

  For example, we have a bom (bomA) with two bom composent, I named it bcomp1 and bcomp2 . 
  bcomp1 and bcomp2 contain a line with same product, product1 and parent bom is bomA.
  With check_product constraint, there are a problem on bomA.

  We work in electronic. bcomp1 and bcomp2 are bom of an electronic card
  and they used same LED (product1).

  Why this hard check and not checked products only on BoM and checked
  products of bom composent without memorised products of parent BoM ?

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


References