Search 1.9 billion lines of Odoo code on GitHub

purchase_order_general_discount

Author: Tecnativa, Odoo Community Association (OCA)
License: AGPL-3
Branch: 15.0
Repository: aurestic/purchase-workflow
Dependencies: base, purchase, and purchase_discount
Languages: HTML (388, 46.5%), PO File (114, 13.7%), Python (171, 20.5%), XML (71, 8.5%), and reStructuredText (91, 10.9%)
Other branches: 11.0, 12.0, 13.0, and 14.0
Other repositories: Alfa-90/purchase-workflow, Alfian878787/purchase-workflow, Andy-blanchard/purchase-workflow, Change2improve/purchase-workflow, ComitorDevTeam/purchase-workflow, Daniel-CA/purchase-workflow, Darknroses/purchase-workflow, Digital5-Odoo/purchase-workflow, ERPLibre/purchase-workflow, ForgeFlow/purchase-workflow, Gabinete-Digital/purchase-workflow, Ingeos/purchase-workflow, Jarsa/purchase-workflow, JuaniFreedoo/purchase-workflow, JuanjoA/purchase-workflow, KARIZMA-CONSEIL/purchase-workflow, KonaERP/purchase-workflow, LevelPrime/purchase-workflow, MathBenTech/purchase-workflow, Mattvracoop/purchase-workflow, NeatNerdPrime/purchase-workflow, OCA-MUK/purchase-workflow, OCA/purchase-workflow, PlanetaTIC/purchase-workflow, RVAngel/purchase-workflow, Rad0van/purchase-workflow, SDIsl/purchase-workflow, SanteLibre/purchase-workflow, SequarSrl/purchase-workflow, Siraparn/purchase-workflow, Studio73/purchase-workflow, Tecnativa/purchase-workflow, Vauxoo/purchase-workflow, aaltinisik/purchase-workflow, acsone/purchase-workflow, adhoc-dev/purchase-workflow, aitlamsali/purchase-workflow, akretion/purchase-workflow, amh-mw/purchase-workflow, anasallaham/purchase-workflow, anhvu-sg/purchase-workflow, binovo/purchase-workflow, bmya/purchase-workflow, brain-tec/purchase-workflow, camptocamp/purchase-workflow, conandark/purchase-workflow, contacto-tecnoservices/purchase-workflow, coopiteasy/purchase-workflow, dani-xtendoo/purchase-workflow, ddico/purchase-workflow, diagramsoftware/purchase-workflow, druidoo-dev/purchase-workflow, dsidorenkovas-rgbconsulting/purchase-workflow, eLBati/purchase-workflow, ecosoft-odoo/purchase-workflow, enmasys/purchase-workflow, ermannognan/purchase-workflow, ernesto-medina/purchase-workflow, etobella/purchase-workflow, exosoftware/oca-purchase-workflow, factorlibre/purchase-workflow, fallewi/purchase-workflow, freelancerapps/purchase-workflow, gab-net/purchase-workflow, hbrunn/purchase-workflow, hibou-io/oca-purchase-workflow, i-vyshnevska/purchase-workflow, ingitex-odoo/purchase-workflow, insscn/purchase-workflow, jason156/purchase-workflow, josuf567/purchase-workflow, jromeroarg/purchase-workflow, juanfcoespin/purchase-workflow, kayue/purchase-workflow, kitaka/purchase-workflow, kmee/purchase-workflow, kongrattapong/purchase-workflow, kos94ok-3D/purchase-workflow, legalsylvain/purchase-workflow, lideritjnma/purchase-workflow, maxellini/purchase-workflow, metalsartigan/purchase-workflow, mmequignon/purchase-workflow, niaisoh/purchase-workflow, niulinlnc/purchase-workflow, nuobit/purchase-workflow, pegonzalezspesol/purchase-workflow, phuctranerp/purchase-workflow, quentinDupont/purchase-workflow, rcerrillo2/purchase-workflow, rohitramnani1994/purchase-workflow, royalline1/purchase-workflow, sa3m/purchase-workflow, sanube/purchase-workflow, sematicshood/flectra, sendalpegat/purchase-workflow, sergiocorato/purchase-workflow, sewisoft/purchase-workflow, sswapnesh/purchase-workflow, sunshineLhj/purchase-workflow, sygel-technology/purchase-workflow, takinobori/oca-purchase-workflow, tegin/purchase-workflow, tirma-sa/purchase-workflow, tonygalmiche/purchase-workflow, unitek-solusi/OCA-purchase-workflow, ursais/purchase-workflow, and x0rzkov/odoo-purchase-workflow

<h1 class="title">Purchase Order General Discount</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/15.0/purchase_order_general_discount"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_order_general_discount"><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/142/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module allows to set a general discount in a purchase order. This general discount is applied to each line order.</p> <p>You can also set a default general discount on suppliers and configure to which line field the discount will be applied.</p> <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="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>You can set in settings another discount field to be applied. For example, if we had <cite>purchase_triple_discount</cite>, we could set the general discount in discount3 to be applied after all other discounts.</p> <p>To do so:</p> <ol class="arabic simple"> <li>Go to <em>Purchases &gt; Configuration &gt; Settings</em> and <em>Purchase Discount Field</em></li> <li>Select the discount you'd wish to use. <cite>purchase_triple_discount</cite> fields will appear when the module is installed.</li> </ol> <p>There's a method at <cite>res.company</cite> called <cite>_get_purchase_discount_fields</cite> that can be used to extend more line discount fields. For example, if we had the field <cite>discount4</cite>, we could extend it like this:</p> <pre> <code lang="python">&#64;api.model def _get_purchase_discount_fields(self): discount_fields = super()._get_purchase_discount_fields() discount_fields += [('discount4', _('Discount 4'))] return discount_fields</code> </pre> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>To set a partner default general discount you need to:</p> <ol class="arabic simple"> <li>Go to a partner and set the general discount in <em>Sales &amp; Purchases</em> tab.</li> </ol> <p>To set a general discount in a purchase order you need to:</p> <ol class="arabic simple"> <li>Create a purchase order.</li> <li>Either select a partner with a purchase general discount defined or set one in the summary section of the order.</li> <li>This discount will be applied to every line.</li> </ol> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/purchase-workflow/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/purchase-workflow/issues/new?body=module:%20purchase_order_general_discount%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="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Tecnativa</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul> <li><p class="first"><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:</p> <blockquote> <ul class="simple"> <li>David Vidal</li> <li>Pedro M. Baeza</li> <li>Rafael Blasco</li> <li>Carlos Roca</li> <li>Pilar Vargas</li> </ul> </blockquote> </li> <li><p class="first"><a class="reference external" href="https://www.aurestic.es">Aures TIC</a>:</p> <blockquote> <ul class="simple"> <li>Jose Zambudio</li> <li>Anna Martinez</li> </ul> </blockquote> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">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>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/15.0/purchase_order_general_discount">OCA/purchase-workflow</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>