OdooWiki OCA HUB

Sale Cancel Confirmed Invoice

sale_cancel_confirmed_invoice folder_open OCA/sale-workflow open_in_new
Sale License: AGPL-3

When a sale order is canceled, the related invoices posted but not paid will be cancelled.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

When enabled, cancelling a sale order also cancels its posted but unpaid invoices. The option is turned on per company in the Sales settings.

This module adds a company-level setting that changes what happens when a sale order is cancelled.

  • In Sales settings, a new checkbox lets you enable the behaviour. When it is on, cancelling a sale order will also cancel any related invoices that are posted but not yet paid.
  • When you cancel a sale order, the cancellation wizard shows a warning that all open unpaid invoices linked to the order will be cancelled too.
  • If the setting is off, the cancellation wizard does not show this warning and invoices are left untouched.

The setting is stored on the company (res.company) and is editable from the configuration screen (res.config.settings). The cancellation logic runs in the sale order cancellation wizard (sale.order.cancel): it looks at the invoices linked to the order, keeps only those that are posted and not paid, resets them to draft and then cancels them, before the normal cancellation continues. The warning text is shown only when the setting is active.

The module touches the sale order cancellation flow and the Sales configuration screen. It does not add new menus or reports.

Depends on

sale_management
Models and fields (3)
  • res.company · extends an existing modelenable_sale_cancel_confirmed_invoice
  • sale.order.cancel · extends an existing modelsale_cancel_confirmed_invoice
  • res.config.settings · extends an existing modelenable_sale_cancel_confirmed_invoice

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 15.0

To use this module, you need to:

  • Enable Sale Cancel Confirmed Invoice at Sales -> Settings -> Enable Sale Cancel Confirmed Invoice.
  • Click at "Cancel Order" button from a sales order which state equal to Sales Order
  • A wizard will showing an alert.
  • Click confirm and all the related Invoices with state posted and not paid will be cancelled.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.