Shop Hide Unavailable Variants | Odoo eCommerce Hide Out of Stock and Excluded Attribute Values
by CODEerts https://www.codeerts.com$ 15.00

eCommerce: only what can be bought Hide the sizes you cannot sell.Odoo greys out the options a customer cannot buy, and shoppers still click them. Shop Hide Unavailable Variants hides them, and follows every choice the customer makes. ✓Excluded combinations hidden ✓Sold-out variants hidden ✓Archived variants hidden ✓The selected value always stays | Odoo 20·Community & Enterprise ![]() |
3 reasons a value is hidden | 0 settings to fill in | 1 check per customer choice | 0 values hidden when you sell out of stock |
A product page that only offers what you can deliver
For shops with many sizes and colours.
01 HiddenNot greyed.
| 02 LiveFollows the customer.
| 03 StockYour rules.
|
On the product page
Every picture is the real module on a demo database.

Sizes follow the colour
Choose another colour and the sizes it has in stock appear.
Three steps
InstallNo configuration. |
PublishYour products, as before. |
SellCustomers only see what they can buy. |
What it needs, and what it never does
Version 20.0 | License OPL-1 | Editions Community & Enterprise | Dependencies eCommerce, Stock |
Requirements✓Odoo 20, Community or Enterprise ✓Depends on eCommerce with stock ✓Works for every visitor ✓Technical name codeerts_shop_hide_variants | Rules✓The first attribute is greyed, hidden only when sold out in every size ✓Stock checks apply to products tracked in stock ✓Allow out of stock orders keeps every value ✓Safari on iPhone keeps drop-down values greyed ✓The backend configurator is left as it is |
Frequently asked questions
Install the app. On the product page, a size that would lead to a sold-out variant is hidden instead of greyed out (on the first attribute, such as the colour, it stays greyed and clickable unless it is sold out in every size), for products tracked in stock that you do not sell when out of stock.
Values excluded by your attribute exclusion rules, values of archived variants, and values that, with the other choices the customer made, lead to a variant with no free stock.
The page checks again. The sizes that colour has in stock appear, the others are hidden. The value the customer has selected always stays visible.
No. When a product allows orders out of stock, every value stays, because it can still be ordered.
Radio buttons, colour swatches and pills are hidden on every attribute after the first; on the first one a value stays greyed so the customer can always switch to it, and is hidden only when it is sold out in every combination. Safari on iPhone and iPad ignores hidden options inside a drop-down list, so there those values stay greyed out and cannot be chosen.
Community and Enterprise. Use the version selector on the Odoo Apps Store page to pick your Odoo release.

About CODEerts
Full-Service Odoo ERP Company · Solutions That Scale
Every module in our store is built from real client work, tested in production and maintained long-term by a team of experienced Odoo consultants. When you need more than an app, we deliver the full solution.
01 Implementation Full Odoo roll-outs from requirements to go-live, across any industry and company size. | 02 Custom Development Bespoke modules, OWL components and business logic built precisely to your workflow. | 03 Migrations Zero-data-loss upgrades from older Odoo versions with full custom module porting. |
04 Integrations Payment gateways, shipping carriers, biometric devices, eCommerce and third-party APIs. | 05 Odoo Audits Performance, security and code-quality reviews that surface risks before they become problems. | 06 Support & Training Ongoing helpdesk, user training and monthly retainers so your team stays productive. |
Odoo Experts | 6+ Years | 150+ Projects | 10+ Industries | 280+ Published Apps |
More from CODEerts
Other apps we build to make Odoo do more. Tap any card to open it on the Odoo Apps Store.
Archive Anything | Transaction Flow Visualizer | Smart Mail Rebrand | Duplicate Record Detector |
AI Dashboard Builder | Advance Payment Pro | Dual Book & Tax Depreciation | Smart Duplicate Detector |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Discuss (mail) • Invoicing (account) • Inventory (stock) • Website (website) |
| Lines of code | 86 |
| Technical Name |
codeerts_shop_hide_variants |
| License | OPL-1 |
| Website | https://www.codeerts.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