Metadata-Version: 2.1
Name: odoo-addon-website_sale_b2x_alt_price
Version: 18.0.1.0.0.9
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Display prices with(out) taxes in eCommerce, complementing normal mode
Home-page: https://github.com/OCA/e-commerce
License: LGPL-3
Author: Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Development Status :: 5 - Production/Stable
Description-Content-Type: text/x-rst

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

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
    :target: https://odoo-community.org/page/development-status
    :alt: Production/Stable
.. |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/18.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-18-0/e-commerce-18-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=18.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:

|b2b-features|

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

|b2c-features|

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

|details-features|

.. |b2b-features| image:: https://raw.githubusercontent.com/OCA/e-commerce/18.0/website_sale_b2x_alt_price/static/description/b2b-features.png
.. |b2c-features| image:: https://raw.githubusercontent.com/OCA/e-commerce/18.0/website_sale_b2x_alt_price/static/description/b2c-features.png
.. |details-features| image:: https://raw.githubusercontent.com/OCA/e-commerce/18.0/website_sale_b2x_alt_price/static/description/details-features.gif

**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" tab of the web editor. This can be done independently per
website:

|toggle-list|

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

|toggle-detail|

.. |toggle-list| image:: https://raw.githubusercontent.com/OCA/e-commerce/18.0/website_sale_b2x_alt_price/static/description/toggle-list.gif
.. |toggle-detail| image:: https://raw.githubusercontent.com/OCA/e-commerce/18.0/website_sale_b2x_alt_price/static/description/toggle-detail.gif

Usage
=====

To use this module, you need to:

1. Create a product.
2. Set some customer taxes on it.
3. Publish it.
4. 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:%2018.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
  - Carlos López

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/18.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.
