Cancel Purchase after processing

Hey ,

I just created a purchase with the following state

Invoice state : waiting
Shipment : Recieved
State: Processing

How can i cancelled the the purchase or delete the purchase .
i tried returning the purchase but got the following error

AttributeError: type object 'purchasepurchase' has no attribute '_fields'

Regards

You must cancel the invoice, return the shipment you received and process the exception on the purchase by not recreate the missing lines.

will the purchase order still be remaining in processing state ?

No it will be done at the end.

You can also read about how to do this here: Cancelling purchases — trytond_purchase latest documentation

2 Likes