How to cancel a drop shipment?

Hello,

by accident, I created a drop shipment with much more items than actually shipped to the customer, and set it to “delivered”, so it appears in my customers’ invoice.

My best guess was that I need to create a reverse drop shipment. But with supplier and customer filled in the correct fields, Tryton would not accept a negative number of items. With supplier and customer reversed, I get a “wrong domain” error.

Would somebody be so kind and explain the correct approach to retract a drop shipment? - Or would fellows just correct the customer and supplier invoices (and maybe put a comment into the direct shipment entry)?

Thanks a lot in advance
EG

I guess you could cancel the drop shipment, then manage the exception on the sale and purchase to recreate a new one.
And then delete the invoice to let the sale recreate a new one.

But you should test this scenario before applying on production data.

Thank you for your quick reply.

Well - core of my question was how to achieve this. In drop shipments, I could not find a “cancel” entry under the wizard icon or similar.

EG

Indeed the cancellation of shipment done is only allowed by code thanks to Allow to cancel a done supplier shipment (#13489) · Issues · Tryton / Tryton · GitLab.
Also the issue missed to update the drop shipment: Allow cancellation of a drop shipment (#14223) · Issues · Tryton / Tryton · GitLab.

Thank you, Sir.

If I understood correctly, cancellation of a drop shipment is not possible at the moment. True?

If so - is it true that just correcting sale and purchase and leave the wrong drop shipment (with a note about the mistake) as it, would be a bearable stopgap, as drop shipments do not affect storage levels?

EG

Indeed you do not absolutely need to correct the drop shipment as it has no impact on the real stock of the company.