mrp: procurement with PO shouldn't fail if the stock.move was deleted (5.0)

Bug #626695 reported by Dukai Gábor
6
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.

Revision history for this message
Dukai Gábor (gdukai) wrote :
Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

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.

Revision history for this message
Dukai Gábor (gdukai) wrote :

Hello JMA,

You can delete the stock moves if you delete the picking. A confirmed or available picking can be deleted and it bypasses the stock move's check.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

JMA,
This can occur only if you have set the boolean 'close move' to be True.
Thanks Dukai.

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2832 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
milestone: none → 5.0.13
Revision history for this message
Dukai Gábor (gdukai) wrote :

Thank you

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.