mrp: procurement with PO shouldn't fail if the stock.move was deleted (5.0)
Bug #626695 reported by
Dukai Gábor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi!
If purchase.order created by mrp.procurement is deleted, it triggers mrp.procurement's action_cancel() to cancel the stock.move linked to the procurement. The problem is that if the user has already deleted that stock.move, action_cancel() would fail and deleting the PO would fail, too.
It means if someone deleted the stock.move, will never be able to delete the PO after.
Small fix is needed, it's included.
To post a comment you must log in.
Hello Dukai Gabor,
When we delete the stock.move it say's "You can only delete draft moves! ".
So the problem which you have posted doesn't occur.
Let me know if I am missing out something.
We would like to meet to the error.
Thanks.