Comment 2 for bug 1297736

Revision history for this message
Amit Patel (amitkumarnpatel) wrote : Re: Deleting Bill of Material when there are Manufacturing orders

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!