OdooWiki OCA HUB

Website Sale Stock Order Cancel

website_sale_stock_order_cancel folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

This module enhances the website_sale_order_cancel module by preventing order cancellations if there are any validated stock pickings.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Prevents customers from cancelling a website order once its stock delivery has been completed, so orders with finished pickings can no longer be cancelled online.

This module adds a business rule on top of the existing website order cancellation feature. When a customer tries to cancel an order from the website, Odoo checks whether any of the order's stock transfers (pickings) have already been completed.

  • If at least one related stock transfer is in the "Done" state, the order is marked as not cancellable and the cancellation option is blocked.
  • If no stock transfer has been completed yet, the normal cancellation behaviour from the base modules still applies.

The rule is recalculated automatically whenever the order's commitment date, expected date, status, or the status of its stock transfers changes, so the cancellation button stays up to date without manual action.

It works together with the website sale order cancellation and website sale stock modules, and only affects the sale.order model. No new menus, screens, or reports are added; the change is visible directly on the website order page where customers cancel orders.

Depends on

website_sale_order_cancelwebsite_sale_stock
Models and fields (1)
  • sale.order · extends an existing model

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/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 15.0

To 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 or if it has any validated related stock pickings.

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.