Metadata-Version: 2.1
Name: odoo-addon-website_sale_comparison_specification_variant
Version: 19.0.1.0.0.4
Requires-Dist: odoo==19.0.*
Summary: Website Sale Comparison Specification Variant
Home-page: https://github.com/OCA/e-commerce
License: AGPL-3
Author: Camptocamp, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=============================================
Website Sale Comparison Specification Variant
=============================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:a2fed4155335af7fb8b54154f58650955fc3793d4685c393ff041a5437cae9bd
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
    :target: https://github.com/OCA/e-commerce/tree/19.0/website_sale_comparison_specification_variant
    :alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/e-commerce-19-0/e-commerce-19-0-website_sale_comparison_specification_variant
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=19.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
   :local:

Usage
=====

1. Go to *Website > Products > Attributes*.
2. On an attribute's value, configure "Exclude for" to list the value(s)
   (of any attribute type) it is incompatible with.
3. 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.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_comparison_specification_variant%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Camptocamp

Contributors
------------

- `Camptocamp <https://www.camptocamp.com/>`__:

  - Ricardoalso <ricardo.almeidasoares@camptocamp.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/19.0/website_sale_comparison_specification_variant>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
