-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
31 changed files
with
1,556 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
================================================= | ||
Alternative (un)taxed prices display on eCommerce | ||
================================================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:8375402946906b5643a62ab7bfb8679e5140ba6d0df5dfd6f58cb22b19871e81 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/17.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-17-0/e-commerce-17-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=17.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/17.0/website_sale_b2x_alt_price/static/description/b2b-features.png | ||
.. |b2c-features| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.0/website_sale_b2x_alt_price/static/description/b2c-features.png | ||
.. |details-features| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.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/17.0/website_sale_b2x_alt_price/static/description/toggle-list.gif | ||
.. |toggle-detail| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.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:%2017.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/17.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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2020 Jairo Llopis - Tecnativa | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). | ||
{ | ||
"name": "Alternative (un)taxed prices display on eCommerce", | ||
"summary": "Display prices with(out) taxes in eCommerce, complementing normal mode", | ||
"version": "17.0.1.0.0", | ||
"development_status": "Production/Stable", | ||
"category": "Website", | ||
"website": "https://github.com/OCA/e-commerce", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"maintainers": ["Yajo"], | ||
"license": "LGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": ["website_sale"], | ||
"data": ["templates/product.xml"], | ||
"assets": { | ||
"web.assets_frontend": [ | ||
"/website_sale_b2x_alt_price/static/src/js/product_configurator_mixin.esm.js", | ||
], | ||
"web.assets_tests": [ | ||
"/website_sale_b2x_alt_price/static/tests/tours/b2b.esm.js", | ||
"/website_sale_b2x_alt_price/static/tests/tours/b2c.esm.js", | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_sale_b2x_alt_price | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-02-25 11:25+0000\n" | ||
"PO-Revision-Date: 2021-02-25 12:26+0100\n" | ||
"Last-Translator: Carlos <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Poedit 2.0.6\n" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (with taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (without taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model:ir.model,name:website_sale_b2x_alt_price.model_product_template | ||
msgid "Product Template" | ||
msgstr "Plantilla de producte" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "with taxes" | ||
msgstr "amb taxes" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "without taxes" | ||
msgstr "sense taxes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_sale_b2x_alt_price | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-02-25 11:25+0000\n" | ||
"PO-Revision-Date: 2023-07-05 11:10+0000\n" | ||
"Last-Translator: Ivorra78 <[email protected]>\n" | ||
"Language-Team: \n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (with taxes)</small>" | ||
msgstr "<small> (con impuestos)</small>" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (without taxes)</small>" | ||
msgstr "<small> (sin impuestos)</small>" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model:ir.model,name:website_sale_b2x_alt_price.model_product_template | ||
msgid "Product Template" | ||
msgstr "Plantilla de producto" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "with taxes" | ||
msgstr "con impuestos" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "without taxes" | ||
msgstr "sin impuestos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_sale_b2x_alt_price | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2021-02-25 11:25+0000\n" | ||
"PO-Revision-Date: 2021-02-25 12:26+0100\n" | ||
"Last-Translator: Carlos <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Poedit 2.0.6\n" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (with taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (without taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model:ir.model,name:website_sale_b2x_alt_price.model_product_template | ||
msgid "Product Template" | ||
msgstr "Modèle d'article" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "with taxes" | ||
msgstr "avec taxes" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "without taxes" | ||
msgstr "sans taxes" |
39 changes: 39 additions & 0 deletions
39
website_sale_b2x_alt_price/i18n/website_sale_b2x_alt_price.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_sale_b2x_alt_price | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (with taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.sale_order_portal_template | ||
msgid "<small> (without taxes)</small>" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model:ir.model,name:website_sale_b2x_alt_price.model_product_template | ||
msgid "Product Template" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "with taxes" | ||
msgstr "" | ||
|
||
#. module: website_sale_b2x_alt_price | ||
#: model_terms:ir.ui.view,arch_db:website_sale_b2x_alt_price.alt_price | ||
msgid "without taxes" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import product_template |
Oops, something went wrong.