TIP: You can type at any time to perform a new search.
Website Sale Comparison Specification Variant
website_sale_comparison_specification_variant · OCA/e-commerce
- Repository
- OCA/e-commerce · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Website
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/e-commerce
- Last tracking update
- 2026-08-19 17:41:05
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Ricardoalso, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- geoip2
- System dependencies
- None
- Required by
- None
- Description
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. 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.
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
accordion_specs_item_specification_exclusion |
accordion_specs_item_specification_exclusion | ir.ui.view | qweb | Inherits website_sale_comparison.accordion_specs_item |
product_attributes_body_specification_exclusion |
product_attributes_body_specification_exclusion | ir.ui.view | qweb | Inherits website_sale_comparison.product_attributes_body |
product_specifications_accordion_content |
product_specifications_accordion_content | ir.ui.view | qweb | New |
product_specifications_content |
product_specifications_content | ir.ui.view | qweb | New |
specifications_table_specification_exclusion |
specifications_table_specification_exclusion | ir.ui.view | qweb | Inherits website_sale_comparison.specifications_table |
HTTP endpoints (1)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/website_sale/get_combination_info |
WebsiteSaleSpecificationExclusionVariantController.get_combination_info_website |
public | jsonrpc | POST | website |
Models touched (3)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.