Website Sale Comparison Specification Variant
On the eCommerce product page, the "Specifications" display added by website_sale_comparison (shown as a table, an accordion item, or both, depending on the theme's display options) lists every attribute of the product, whose values can be restricted to specific variant combinations via the attribute value's "Exclude for" configuration.
Without this module, that display always lists every configured value of such an attribute, and never updates when the customer changes the selected variant. This module makes it show only the value(s) actually compatible with the combination currently selected on the page, and refreshes it when the customer changes variant. This applies to every attribute type, not only non-variant-defining ("informative") ones. On the product page, an attribute with no value left for the selected variant is not listed, and neither is a category left without attributes.
The comparison page (/shop/compare) is covered too: for each compared product, a non-variant-defining attribute only lists the value(s) compatible with that product's own variant. Variant-defining attributes are unaffected there, since the comparison page already shows each product's own actual value for them.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0On the eCommerce product page, the Specifications table and accordion now show only the attribute values that match the variant the customer has selected, and they refresh automatically whenever the variant changes.
This module refines the product "Specifications" display added by the product comparison feature on the website shop. Previously that display listed every configured value of an attribute, even values that do not apply to the variant the customer picked.
What changes for the customer: - The Specifications table and the Specifications accordion on the product page only list the values compatible with the currently selected variant combination. - When the customer changes an option (size, colour, etc.), the specifications are refreshed immediately without reloading the page; the accordion keeps its open or collapsed state. - An attribute that has no applicable value for the selected variant is not listed at all, and a category left with no attributes disappears from the display.
Business rules added by the code:
- Values are filtered using the "Exclude for" configuration of attribute values, combined with the selected variant.
- Attributes that define variants keep showing the single value the product actually has; only non-variant-defining (informative) attributes are filtered this way.
- The refresh is served by the existing variant information endpoint /website_sale/get_combination_info, which now also returns the refreshed specifications content.
It touches the product, product template and attribute line models, and the website product page templates. No new menus or screens are added.
Depends on
Models and fields (3)
- product.product · extends an existing model
- product.template · extends an existing model
- product.template.attribute.line · 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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0- Go to Website \> Products \> Attributes.
- On an attribute's value, configure "Exclude for" to list the value(s) (of any attribute type) it is incompatible with.
- On the eCommerce product page, the "Specifications" display (table and/or accordion item, depending on the theme's display options) will only show the value(s) of that attribute compatible with the currently selected variant, and will update automatically when the customer changes it.
3.1 On the comparison page (/shop/compare), each compared product's specifications will only show the value(s) of a non-variant-defining attribute compatible with that product's own variant.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.