Steersman’s Website Availability Logic in Odoo

Standard inventory availability does not always tell the full story.
A product may physically exist in your warehouse but still be unavailable for sale because it is reserved, scheduled for shipment, or waiting to complete the receiving process. Other products may still be available for purchase even when they are temporarily out of stock because they can usually ship within a predictable lead time.
Our Website Availability Logic gives you greater control over how products are presented on your Odoo eCommerce website. Availability rules can determine whether a product remains visible, displays an availability message, shows its price, allows customers to add it to their cart, or is excluded from the website entirely.
Show Availability That Reflects Your Actual Business
Odoo’s standard inventory values may not always match the quantity you want to present to your online customers.
For example, stock in a warehouse input location may have been physically received but may not yet be inspected, processed, or ready for sale. Similarly, a quantity may appear on hand even though it has already been reserved for another order.
Our availability logic allows the website quantity to be calculated using inventory information such as:
- Physical on-hand quantity
- Available quantity
- Reserved quantity
- Incoming quantity
- Outgoing quantity
- Stock in receiving or input locations
- Forecasted quantity
- Product category
- Product sales ranking
You can combine these values into a custom formula that more accurately represents the quantity your customers should consider available.
For example:
website_qty = max(0, available_qty - outgoing_qty - input_location_qty)
With this formula, Odoo begins with the available quantity, subtracts quantities scheduled to leave your warehouse, and excludes products that are still in input locations. The formula also prevents the website quantity from falling below zero.
Communicate More Realistic Shipping Expectations
A product does not always need to be removed from your website simply because its calculated availability reaches zero.
Instead, you can display a helpful message that sets an appropriate expectation for your customer.
For example:
"Usually ships within 3 days" if float(website_qty) <= 0 else ""
When the calculated website quantity is greater than zero, no additional message appears.
When the quantity reaches zero or below, your customer sees:
Usually ships within 3 days
This allows the product to remain available for purchase while giving your customer more accurate information about when the order may ship.
Other customer-facing messages could include:
- Currently unavailable
- Contact us for lead time
- Available by special order
- Temporarily out of stock
- Request availability information
You can apply the message across an entire product or configure it more specifically for individual product variants.
Control How Your Products Appear Online
Your website availability rules can control more than just an inventory message.
Depending on your products and business requirements, a rule can change several parts of your customer’s shopping experience.
Remove Products from Website Listings
You can unlist products when the rule’s conditions are met.
This may be useful for:
- Discontinued products
- Restricted products
- Seasonal items
- Products that are temporarily unavailable for browsing or sale
This gives you a way to prevent products from appearing online when they should no longer be part of the active website catalog.
Hide Product Pricing
Some of your products may require a custom quote, approval, special configuration, or additional customer information before a price can be provided.
For these products, the availability rule can hide the website price while allowing the product page to remain visible.
This lets your customers still find and learn about the product without displaying pricing that does not fit your sales process.
Hide the Add to Cart Button
A product may need to remain visible for informational or marketing purposes without being available for immediate online purchase.
Our availability logic can hide the Add to Cart button for products that:
- Require a quote
- Have purchasing restrictions
- Are discontinued
- Need special handling
- Are temporarily unavailable for online ordering
Display an Alternate Call to Action
Instead of showing Add to Cart, the product page can display a more appropriate call to action, such as:
- Contact Us
- Request a Quote
- Call for Availability
This helps guide your customer toward the correct next step instead of presenting a purchasing option that does not match the product’s availability or your sales process.
Apply Different Rules to Different Products
Not every product in your catalog needs to follow the same availability process.
You may want most products to use a standard inventory calculation while certain categories, variants, or special-order items follow separate rules.
Our availability logic includes exceptions that can identify when another rule should apply. Exceptions can be based on specific product conditions, quantities, categories, or other supported criteria.
For example:
- Stocked products can use standard available inventory.
- Special-order products can display a lead-time message.
- Quote-only products can hide the price and Add to Cart button.
- Discontinued products can be removed from the website.
- Certain product categories can use a separate availability calculation.
This gives you a consistent default rule while still allowing individual products or product groups to follow the behavior that best fits how you sell them.
Support Multiple Odoo Websites
If you operate more than one Odoo website, you can assign availability rules to a specific site.
This allows each website to have its own availability behavior.
For example, your wholesale website and retail website could display:
- Different availability messages
- Distinct pricing behavior
- Separate purchasing actions
- Different product availability
This lets each website reflect the needs of its own customers instead of requiring every site to follow the same rules.
Give Your Customers Clearer Availability Information
Our Website Availability Logic connects your Odoo inventory information with the way your products are presented to customers online.
Instead of relying only on standard inventory values, you can control what your website treats as available, which products can be purchased, what messages customers see, and when a different purchasing action should be displayed.
The result is a more flexible and informative customer experience:
- Your customers receive clearer shipping and availability expectations.
- Products can remain visible even when immediate stock is unavailable.
- Quote-only and restricted products can follow the correct sales process.
- Inventory that is reserved, outgoing, or still being received can be excluded from website availability.
- Different products and websites can follow separate availability rules.
Related posts

Choosing a pricing strategy for your operation in Odoo
Learn the various pricing strategies available in Steersman's Odoo for use by sales and on ecommerce websites

Sending Inventory information using EDI in Odoo
Steersman’s EDI 846 outbound integration enables businesses to communicate inventory availability with trading partners efficiently and accurately through Odoo by automating the process of sending inventory data to external systems or partners in real time.

Connect Shopify and Odoo with Steersman’s Shopify Integration
Shopify is often the customer-facing side of an ecommerce business, while Odoo manages the operational work behind it: products, inventory, orders, purchasing, fulfillment, accounting, and customer service. Steersman’s Shopify integration for Odoo connects those systems so information can move between Shopify and Odoo according to each business’s needs.

Odoo User Permissions
Understanding the Basics of Assigning User Permissions in Odoo