Skip to main content

Display 'Available to promise' in shop online instead of 'Free To Use Quantity'

Project description

Odoo Community Association

Website Sale Stock Available

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

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.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Inventory > Products > Products and edit a product that you only want to sell in the eCommerce if there is enough stock.

  2. Navigate to Out-of-stock (continue selling) field in the Sales tab and unset it.

Usage

To use this module, you need to:

  1. Go to your eCommerce.

  2. Select a product that you has been previously configured to prevent sales if not enough stock for the web product page.

  3. 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.

Availability message

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Tecnativa

Contributors

  • Tecnativa:

    • Ernesto Tejeda

    • Pedro M. Baeza

    • David Vidal

    • Carlos Lopez

  • Iván Todorovich

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/e-commerce project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_website_sale_stock_available-19.0.1.0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_website_sale_stock_available-19.0.1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6134bd5203042e9fbedf61d47be88f323c574fb2d193c6a41a20fd920d33254a
MD5 f0de0b2cd1e46720f42f12d384a21d19
BLAKE2b-256 05dfec2e2642c49bae26154174c805f8be9dd83d163b6fc2c422e99f1949c40f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page