OdooWiki OCA HUB

Website Sale Cart Expire

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

Allows to automatically cancel carts without activity after a configurable time.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Automatically cancels abandoned website carts after a configurable delay. Set the delay per website in Website settings; a scheduled job cancels expired draft orders and logs a message on them.

This module adds an automatic cleanup of abandoned online carts. In the Website settings, a new "Expire Carts" option lets you enter how many hours a cart can stay inactive before it is cancelled. The value is stored per website and defaults to 0, which disables the feature.

A scheduled job named "Website: Expire Carts" runs every 5 minutes. It looks for draft website orders whose last activity is older than the configured delay and cancels them, posting a "Cart expired" message in the order's chatter. Orders that have a payment transaction in pending, authorized or done state are skipped, so carts with an ongoing or completed payment are not cancelled.

The module extends sale.order with a technical field cart_expire_date that shows when a cart will expire, and extends website with the cart_expire_delay setting. It also adds the setting to the res.config.settings screen used by website configuration. No new menus are created; the option appears inside the existing Website settings form, after the abandoned carts setting.

Depends on

website_sale
Models and fields (3)
  • website · extends an existing modelcart_expire_delay (Expire Delay)
  • sale.order · extends an existing modelcart_expire_date
  • res.config.settings · extends an existing modelcart_expire_delay

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 19.0

Go to Website \> Settings and set a delay for Expire Carts settings.

No verified information in OCA: Installation, Usage.

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.