Search 1.9 billion lines of Odoo code on GitHub

website_sale_b2x_alt_price

Author: Tecnativa, Odoo Community Association (OCA)
License: LGPL-3
Branch: 15.0
Repository: brain-tec/e-commerce
Dependencies: website_sale
Languages: HTML (389, 37.7%), JavaScript (220, 21.3%), PO File (60, 5.8%), Python (232, 22.5%), XML (43, 4.2%), and reStructuredText (89, 8.6%)
Other branches: 12.0, 12.0-ocabot-merge-pr-449-by-dreispt-bump-nobump, 13.0, 13.0-ocabot-merge-pr-435-by-dreispt-bump-nobump, 13.0-ocabot-merge-pr-483-by-dreispt-bump-minor, 13.0-ocabot-merge-pr-508-by-pedrobaeza-bump-nobump, 13.0-ocabot-merge-pr-524-by-pedrobaeza-bump-nobump, 13.0-ocabot-merge-pr-617-by-pedrobaeza-bump-minor, and 14.0
Other repositories: AITIC/e-commerce, Change2improve/e-commerce, Comunitea/e-commerce, ERPLibre/e-commerce, ForgeFlow/e-commerce, Gabinete-Digital/e-commerce, Ingeos/e-commerce, LevelPrime/e-commerce, NeatNerdPrime/e-commerce, NextERP-Romania/e-commerce, Nitrokey/odoo-e-commerce, OCA-MUK/e-commerce, OCA/e-commerce, Spearhead-Odoo/e-commerce, TRESCLOUD/e-commerce, Tecnativa/e-commerce, Vauxoo/e-commerce, acsone/e-commerce, adhoc-dev/e-commerce, agrista/odoo-e-commerce, anhvu-sg/e-commerce, camptocamp/e-commerce, coopiteasy/e-commerce, daramousk/e-commerce, eLBati/e-commerce, fcayre/e-commerce, gurneyalex/e-commerce, jctrey/e-commerce, killvis/e-commerce, lideritjnma/e-commerce, myceliandre/e-commerce, sodexis/e-commerce, versada/e-commerce, wahello/e-commerce, and zeroheure/e-commerce

<h1 class="title">Alternative (un)taxed prices display on eCommerce</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/e-commerce/tree/15.0/website_sale_b2x_alt_price"><img alt="OCA/e-commerce" src="https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_b2x_alt_price"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/113/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module takes into account if your eCommerce is in B2B or B2C mode, and displays the alternative pricing next to the main one.</p> <p>For example, if your website is B2B (main price is without taxes), you would see it similar to this:</p> <div class="figure"> <img alt="B2B features showcase" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_b2x_alt_price/static/description/b2b-features.png" /> </div> <p>If your website is B2C (main price is with taxes), then it looks like this:</p> <div class="figure"> <img alt="B2C features showcase" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_b2x_alt_price/static/description/b2c-features.png" /> </div> <p>It also displays the alternative price, including discounts, updated automatically when the user is choosing alternatives in the product detail page:</p> <div class="figure"> <img alt="Product details page features showcase" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_b2x_alt_price/static/description/details-features.gif" /> </div> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>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 &quot;Customize&quot; menu. This can be done independently per website:</p> <div class="figure"> <img alt="How to disable and enable the feature in products list" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_b2x_alt_price/static/description/toggle-list.gif" /> </div> <p>You can also toggle the behavior similarly in the product details page. This can also be done independently per website:</p> <div class="figure"> <img alt="How to disable and enable the feature in product details" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_b2x_alt_price/static/description/toggle-detail.gif" /> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>To use this module, you need to:</p> <ol class="arabic simple"> <li>Create a product.</li> <li>Set some customer taxes on it.</li> <li>Publish it.</li> <li>Go see it on your website. It will display the alternative price.</li> </ol> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2> <ul class="simple"> <li>Computing this requires 1 or 2 extra calls to <code>taxes.compute_all()</code> 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®?</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/e-commerce/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_b2x_alt_price%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>Tecnativa</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="https://www.tecnativa.com/">Tecnativa</a>:<ul> <li>Jairo Llopis</li> <li>Carlos Roca</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/Yajo"><img alt="Yajo" src="https://github.com/Yajo.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/e-commerce/tree/15.0/website_sale_b2x_alt_price">OCA/e-commerce</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>