Odoo 19 app

All In One Cancel

Cancel sale orders, purchase orders, invoices, payments and transfers from the form or in bulk from the list. Version 1.1 adds what Odoo refuses: cancel a done delivery or receipt, put the stock back where it was, and let the inventory value follow.

Cancel it, even after it was validated

What it does

Somebody validates a delivery with the wrong quantity, or receives goods into the wrong order. Standard Odoo will not let you cancel a done transfer. You create a return, then a new transfer, and the history shows three documents for one mistake.

With this module a member of the Cancel done documents group opens the transfer and clicks Cancel. The goods go back to the location they came from, with the same lot, serial number, package and owner. The transfer becomes Cancelled, or Draft if you want to validate it again with the right numbers. The inventory value is recomputed for FIFO, average cost and standard cost products, and any journal entry the transfer made is reversed with an entry dated today.

It refuses when undoing would be wrong, and says why: the goods already left, a return exists, the stock is reserved for another order, an invoice is posted for these goods, or the transfer is in a locked accounting period.

Who it is for

  • Wholesalers fixing a wrong order. When a sales order was confirmed, invoiced and paid by mistake, undoing it in standard Odoo means visiting the payment, the invoice, the delivery and the order one by one. Here one wizard on the order handles all of them.
  • Purchasing teams. A buyer who confirmed a purchase order with the wrong supplier can cancel the order along with its pending receipts and the vendor bills and payments linked to it.
  • Accountants correcting invoices. Cancelling an invoice or resetting it to draft also takes the payment entries reconciled with it to the same state, so nothing is left half posted.
  • Admins tidying a test database. After a training session, select dozens of test orders or transfers in the list view and cancel, reset or delete them in one go.

Features

The rest of the module is what it always didcancel sale orders with their deliveries, invoices and payments, purchase orders with their receipts and bills, and invoices on their own. Now an order can take its done deliveries or receipts with it in the same click.
Switch it on per company
Cancel button on a done delivery
A check before anything moves
Stock back, reason on the document
Refused, with the reason
Sale order with its done delivery and paid invoice
The order is cancelled
Purchase order with its done receipt and bill
Bulk from the list
Cancel log

Setting it up

  1. Install the module. It needs Sales, Purchase, Invoicing and Inventory installed.
  2. Open a confirmed sales order, purchase order, invoice or transfer and click the red Cancel button in the smart button area at the top of the form.
  3. In the wizard pick the Cancel Mode: Cancel Only, Cancel and Reset to Draft, or Cancel and Delete.
  4. For a sales order tick Also Cancel Deliveries and Also Cancel Invoices & Payments if you want those undone too. For a purchase order the options are Also Cancel Receipts and Also Cancel Bills & Payments.
  5. Click Cancel Records. A notification tells you how many documents were cancelled and lists any that couldn't be, with the reason.
  6. For bulk work, select several records in the list view and choose the Cancel action from the Actions menu, then follow the same wizard.

All In One Cancel: questions

Can it cancel a delivery that was already validated?

No. Done transfers are skipped when you cancel a sales or purchase order, and cancelling a done transfer directly gives an error asking you to create a return instead. Stock that physically moved should be reversed with Odoo's return flow.

What happens if one document in a bulk cancel fails?

Each document is handled on its own. One that fails, for example because of a lock date or a rule from another app, doesn't undo the others. You get a notification listing what was cancelled and what wasn't, with Odoo's error message for each.

Can a user cancel documents they normally couldn't touch?

No. The wizard checks the user's own write rights on the documents, and delete rights when Cancel and Delete is chosen. It doesn't bypass any access rules.

Which payments does it cancel with an invoice?

The posted payment entries reconciled with that invoice. They are cancelled in Cancel Only mode, or reset to draft when you reset or delete the invoice. Payments not reconciled with the invoice are left alone.

Does it work on Community?

Yes. It depends on Sales, Purchase, Invoicing and Inventory, which are all part of Community.

Is Cancel and Delete reversible?

No. Deleted documents are gone from the database, so use Cancel Only or Cancel and Reset to Draft when you might need the record later. Odoo's own rules still apply, so some documents can't be deleted at all.