[Trunk/7.0] Deleting Bill of Material when there are Manufacturing orders.

Bug #1297736 reported by Lara (Therp)
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 2

Bug Description

Hello,

It is possible to delete a Bill of material when there are manufacturing orders with that bill of material. This result in a manufacturing order that cannot be produced or canceled because the field bill of material is invalid.

I think it shouldn't be possible to delete a bill of material when there is a manufacturing order in the state ready to produce.

Related branches

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Amit Patel (amitkumarnpatel) wrote :

Hello!

I also faced the same issue at my end, If I try to delete the Bill of meterial I can successfully delete it even I have the manufacturing order for that same product with any state. It should not be allow to delete it . It must have been raise the warning message . Because If I have any manufacturing order in "ready to produce" state and I deleted the BOM then after If I try to produce the product it doesn't allow me beccuase bom_id is required field on mrp.order. I think we have to add the "on_delete=restrict" to fix this issue.

Thank you!

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
summary: - Deleting Bill of Material when there are Manufacturing orders
+ [Trunk/7.0] Deleting Bill of Material when there are Manufacturing
+ orders.
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
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.