Show shoppers only what’s in stock never a dead-end variant.
Out-of-stock attribute combinations are greyed out, disabled, or hidden on the storefront — distinct from combinations that don’t exist — and the product page always opens on a variant shoppers can actually buy.
Odoo’s storefront only greys out attribute values that lead to combinations which don’t exist. An out-of-stock but configurable variant stays fully clickable, so shoppers pick it, reach Add to Cart, and hit a wall — the exact moment they had buying intent. Across catalogs with 7+ attributes the number of dead combinations multiplies fast, and every one is a lost sale.
This module computes real-time stock availability for every variant and folds it into the same exclusion logic Odoo already uses for impossible combinations. Out-of-stock options are greyed out and disabled, or hidden outright — the merchant’s choice, store-wide or per product — with a distinct style so shoppers can tell “temporarily out of stock” from “never existed.” The product page always opens on a variant that is actually in stock.
This app speaks your language.
Tell us the language your team works in and we translate this module for you, free of charge — so everyone works in the language they know best.
Request my free translation →No hidden fees. No subscription.
Every dead-end variant, closed off
Every capability below is implemented in the module.
Fully Non-Interactive Options
Out-of-stock attribute values are not just greyed — they are disabled outright, so shoppers can never click, tab to, or submit a combination they cannot buy.
Guaranteed In-Stock Default
The product page always opens on a variant that is currently in stock, so the Add to Cart button is present the instant the page renders — no exceptions.
Real-Time Stock Sync
Availability is computed live from on-hand quantity every time the page loads, so the storefront never advertises a variant that just sold out.
Out of Stock vs. Does Not Exist
Out-of-stock combinations get their own style and tooltip, kept visually distinct from combinations that are simply not offered — so shoppers understand what they are seeing.
Dependent Attribute Cascading
Selecting one attribute value immediately updates which values are still reachable at every other attribute, guiding shoppers toward a combination that can actually be purchased.
Store-Wide Default Behavior
Choose Off, Show but Disable, or Hide as the default for the whole storefront from Website Settings, matching how the shop already presents unavailable options.
Per-Product Override
Any product template can override the store default individually, so a handful of complex catalogs can behave differently from the rest of the shop without a bulk wizard.
Scales to Complex Catalogs
Built to stay correct across 7+ attributes with many values each, where the number of possible and impossible combinations grows fastest.
Zero Manual Tagging
No merchant needs to mark which combinations are out of stock by hand — availability is derived automatically from Odoo’s own inventory data.
How it works
Set the default behavior
Pick Off, Disable, or Hide for the whole store in Website Settings.
Override per product (optional)
Any product template can use its own behavior instead of the store default.
Stock is checked live
Every page load, on-hand quantity decides which combinations are out of stock.
Shoppers see only buyable options
Unavailable values are disabled or hidden, and the page opens on an in-stock variant.
See it in action
From store-wide defaults to the storefront your shoppers see.
Override the store default per product from the Sales tab — Off, Show but Disable, or Hide.
Set the store-wide default behavior once in Website Settings, under Inventory Defaults.
Disable mode: out-of-stock colors and sizes are greyed out, struck through, and impossible to click — distinct from combinations that don’t exist.
Hide mode: out-of-stock attribute values are removed from the selector entirely, and the page opens on an in-stock combination.
Frequently asked
Does this replace Odoo’s own out-of-stock handling?
No, it extends it. Odoo already hides variant values that lead to combinations which don’t exist; this module adds the missing case — combinations that exist but are currently out of stock — using the same exclusion mechanism the storefront already renders.
What happens if every combination of a product is out of stock?
The product page falls back to Odoo’s normal default combination, since there is no in-stock option to show instead. Nothing crashes and no other behavior changes.
Can I choose to hide options instead of just disabling them?
Yes. Set the behavior to Off, Show but Disable, or Hide, store-wide in Website Settings or per product on the product form.
Does this affect backend order creation or existing sale orders?
No. The behavior only applies to the website storefront when a shopper is selecting attribute values; backend variant creation and existing orders are unaffected.
Get in Touch
Have questions or need customization? Every purchase includes 30 days of free support — we are here to help.
Visit Our Website
www.cerevantix.comExplore our apps, services, and portfolio.
Empowering growth through technology.
Grey out or hide out-of-stock variant attribute values on the storefront, keep them distinct from combinations that don’t exist, and always open the product page on a variant shoppers can actually buy.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Inventory (stock) • Website (website) |
| Lines of code | 246 |
| Technical Name |
cerevantix_hide_cancel_out_unavailable_variants |
| License | OPL-1 |
| Website | https://cerevantix.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module