Website Sale Comparison Specification Variant
website_sale_comparison_specification_variant · OCA/e-commerce
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
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. 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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.