OdooWiki OCA HUB

Website Sale Stock Available

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

This module extends the functionality of the Product Availability module (technical name: website_sale_stock) so that for the eCommerce the Available quantity of a product is taken into account instead of the free quantity.

Note that in the past the eCommerce availability was based in Forecasted quantity. This isn't true anymore from version 15.0.

If a product is configured to prevent sales if not enough stock (see configuration section) and its page is accessed in the Website Shop, the availability messages will be based on the Available quantity instead of Free quantity. And also, the eCommerce won't allow you to buy more products than Available quantity (not Free quantity isn't taken into account).

Relation to Odoo 19.0 core

Core 19.0 website_sale_stock uses free_qty (on-hand minus reservations) for eCommerce availability. This module swaps in immediately_usable_qty (Available To Promise — includes incoming moves), which matters for businesses with ongoing inbound supply where incoming stock should be sellable before it arrives.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

In the online shop, product availability messages and purchase limits are based on the 'Available to promise' quantity instead of the 'Free to use' quantity, so customers see and can buy only what is truly available.

This module changes how the Odoo eCommerce shop calculates and shows product availability. Normally the shop uses the free quantity (on-hand stock minus reservations). With this module installed, the shop instead uses the 'Available to promise' quantity coming from the stock availability module.

What changes for users: - On product pages in the Website Shop, the availability message reflects the available-to-promise quantity. - When a customer adds products to the cart, the shop checks that quantity, so it will not let them buy more than what is available to promise. - The same rule applies during the online payment step, so the check stays consistent until checkout.

Where it appears: it works silently inside the existing Website Shop screens (product page, cart, payment). It adds no new menus, buttons or reports.

Which areas it touches: it extends product information (product.product and product.template), the sales order cart update (sale.order), and the website payment controller. The behaviour is activated only in the website context, so back-office stock figures and other sales channels are not affected.

No new configuration options, scheduled jobs or emails are added by this module.

Depends on

stock_availablewebsite_sale_stock
Models and fields (2)
  • product.product · extends an existing model
  • product.template · extends an existing model

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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 14.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to:

  • Go to Inventory \> Products \> Products and edit a product that you only want to sell in the eCommerce if there is enough stock.
  • Navigate to Out-of-stock (continue selling) field in the Sales tab and unset it.

To use this module, you need to:

  • Go to your eCommerce.
  • Select a product that you has been previously configured to prevent sales if not enough stock for the web product page.
  • Odoo doesn't allow you to add the product to the cart if Available quantity (not Free to use quantity) is equal or less than zero. Besides, availability messages will be based on the Available quantity instead of the Free to use quantity.

No verified information in OCA: Installation.

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.