[Trunk/7.0] Deleting Bill of Material when there are Manufacturing orders.
Bug #1297736 reported by
Lara (Therp)
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
lp:~openerp-dev/openobject-addons/trunk-bug-1297736-hsa
Ready for review
for merging
into
lp:openobject-addons
- OpenERP Core Team: Pending requested
-
Diff: 17 lines (+6/-1)1 file modifiedmrp/mrp.py (+6/-1)
Changed in openobject-addons: | |
status: | New → Confirmed |
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.
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!