This module allows customers to cancel confirmed sales orders directly from the Odoo portal using a simple confirmation modal. Cancellation is restricted based on a configurable period before the sale order's scheduled date.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0Lets customers cancel their confirmed website orders from the portal, as long as the order is not too close to its scheduled delivery date. The allowed cancellation window is set in the Website settings.
This module adds a Cancel button to the customer portal page of a sales order. The button only appears when the order is confirmed or done and the scheduled delivery date is still far enough away.
- In Website settings, under the shipping section, a new option "Cancellation Restriction Period" lets you choose how many days before the scheduled delivery date cancellations are blocked (0 to 7 days, default 1).
- On the portal order page, if cancellation is allowed, a red Cancel button opens a confirmation pop-up showing the order number and asking "Are you sure you want to cancel this order?".
- Confirming the pop-up cancels the sales order immediately and reloads the page; if something goes wrong, an error message is shown.
- The decision is based on the order's commitment date or expected date: if no scheduled date exists, cancellation is not allowed.
The module touches sale.order (adds a computed can_cancel flag), res.config.settings (adds the restriction setting), the portal template sale.sale_order_portal_content, and a small front-end script that calls the cancellation route.
Depends on
Required by other modules
Models and fields (2)
- sale.order · extends an existing modelcan_cancel
- res.config.settings · extends an existing modelcancel_restrict_days (Cancel Restriction Days)
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-03Confirmation 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/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 15.0Usage
Source · Odoo 15.0To configure the cancellation period:
- Navigate to Website > Configuration > Settings > Shipping
- Set the Cancellation Restriction Period to your desired number of days.
To cancel an order:
- In the Website app, navigate to My Account > Sales Orders.
- Open the sales order you wish to cancel.
- Click the Cancel button to open the confirmation modal.
- Confirm the cancellation by clicking the Submit button.
The sale order cannot be cancelled if the cancellation period has passed.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.