Steps to recreate:
- Warehouse team noticed wrong product on BOM picking list
- Office team edited BOM while the sales order was left active
- This has caused some error in Odoo. Any operation which includes this product gives error.
- We are unable to delete or cancel a sales order with this product / BOM (error)
- Product has been removed from all BOMs and replaced with new part but we are unable to delete or archive the product (error)
- We are unable to process a purchase order with this part (error) and we cant remove the product from the PO as it is "purchased"
I'd love to help on this issue.
Kindly tell me what do you mean by keeping the sales order active ? Does it mean the SO is still in the quotation state or confirmed ?
On the 5th bullet point, you said that the products have all been removed from BOM but yet you can't delete it ? Do you mean that the parts have all been removed form the BOM and replaced with new parts instead ?
Hi Dennis. "keeping sales order active" - yes, SO is in confirmed state. I cant delete it or cancel it or do anythign with it. Here is the error when try to delete:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
KeyError: mrp.bom.line()
5th bullet point - yes this BOM has been fixed and the correct parts have been added. However the SO remains with the old BOM ( the incorrect BOM) and i think this is the problem