=================================================
Alternative (un)taxed prices display on eCommerce
=================================================

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

.. |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/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
    :target: https://github.com/OCA/e-commerce/tree/14.0/website_sale_b2x_alt_price
    :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-14-0/e-commerce-14-0-website_sale_b2x_alt_price
    :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=14.0
    :alt: Try me on Runboat

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

This module takes into account if your eCommerce is in B2B or B2C mode, and
displays the alternative pricing next to the main one.

For example, if your website is B2B (main price is without taxes), you would
see it similar to this:

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_b2x_alt_price/static/description/b2b-features.png
   :alt: B2B features showcase

If your website is B2C (main price is with taxes), then it looks like this:

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_b2x_alt_price/static/description/b2c-features.png
   :alt: B2C features showcase

It also displays the alternative price, including discounts, updated
automatically when the user is choosing alternatives in the product detail
page:

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_b2x_alt_price/static/description/details-features.gif
   :alt: Product details page features showcase

**Table of contents**

.. contents::
   :local:

Configuration
=============

To choose if you want to display or not the alternative price in the website
products list, just enable or disable the feature from the "Customize" menu.
This can be done independently per website:

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_b2x_alt_price/static/description/toggle-list.gif
   :alt: How to disable and enable the feature in products list

You can also toggle the behavior similarly in the product details page.
This can also be done independently per website:

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/14.0/website_sale_b2x_alt_price/static/description/toggle-detail.gif
   :alt: How to disable and enable the feature in product details

Usage
=====

To use this module, you need to:

#. Create a product.
#. Set some customer taxes on it.
#. Publish it.
#. Go see it on your website. It will display the alternative price.

Known issues / Roadmap
======================

* Computing this requires 1 or 2 extra calls to ``taxes.compute_all()`` per
  product. This could be expensive in terms of performance, but the truth is
  that it is also not very optimized upstream in Odoo. Maybe optimize this part
  in Odoo and in this module? Or maybe apply some hack to avoid recomputing
  this? Maybe cache calls to that method? Is it really a problem in the
  Real World®?

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_b2x_alt_price%0Aversion:%2014.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com/>`__:

  * Jairo Llopis
  * Carlos Roca

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.

.. |maintainer-Yajo| image:: https://github.com/Yajo.png?size=40px
    :target: https://github.com/Yajo
    :alt: Yajo

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Yajo| 

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

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