Search 1.9 billion lines of Odoo code on GitHub

sale_coupon_criteria_multi_product

Author: Tecnativa, Odoo Community Association (OCA)
License: AGPL-3
Branch: 13.0-add-sale_coupon_criteria_multi_product
Repository: Tecnativa/sale-workflow
Dependencies: sale_coupon
Languages: HTML (433, 55.3%), Python (203, 25.9%), XML (30, 3.8%), and reStructuredText (117, 14.9%)

<h1 class="title">Coupons multi product criteria</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/sale-workflow/tree/13.0/sale_coupon_criteria_multi_product"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_coupon_criteria_multi_product"><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/167/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This modules allows to define complex rules on products to fulfill the conditions of a coupon program, so for a given set of products we could define a minimum quantity and another for others, being all those criterias mandatory for the coupon to 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>To configure multiple product criterias:</p> <ol class="arabic simple"> <li>Go to <em>Sales &gt; Catalog &gt; Coupon Programs</em> and select or create a new one.</li> <li>On the <em>Coupon Criteria</em> field choose <em>Multi Product</em>.</li> <li>The standard domain will be hidden and a criteria list will be shown.</li> <li>Add as many criterias as needed for the desired promotion behavior.</li> </ol> <p>In the list of criterias we can configure:</p> <ul class="simple"> <li>Qty: The minimum quantity of products in the sale order to fulfill the condition.</li> <li>Products: The products that should be present to fulfill the condition.</li> <li>Repeat: The sum of quantities of any product in the criteria must be at least the one defined in the minimum quantities. If not set, the minimum quantity will be the number of products defined in the criteria, as all of them must be in the order to fulfill the condition.</li> </ul> <p>Some examples:</p> <blockquote> <table class="docutils"> <colgroup> <col width="17%" /> <col width="55%" /> <col width="28%" /> </colgroup> <thead valign="bottom"> <tr><th class="head">Qty</th> <th class="head">Products</th> <th class="head">Repeat</th> </tr> </thead> <tbody valign="top"> <tr><td>1</td> <td>Prod A</td> <td>&nbsp;</td> </tr> </tbody> </table> </blockquote> <p>A unit of Product A must be in the sale order.</p> <blockquote> <table class="docutils"> <colgroup> <col width="17%" /> <col width="55%" /> <col width="28%" /> </colgroup> <thead valign="bottom"> <tr><th class="head">Qty</th> <th class="head">Products</th> <th class="head">Repeat</th> </tr> </thead> <tbody valign="top"> <tr><td>2</td> <td>Prod B, Prod C</td> <td>&nbsp;</td> </tr> </tbody> </table> </blockquote> <p>A unit of Product B and Product C must be in the sale order.</p> <blockquote> <table class="docutils"> <colgroup> <col width="17%" /> <col width="55%" /> <col width="28%" /> </colgroup> <thead valign="bottom"> <tr><th class="head">Qty</th> <th class="head">Products</th> <th class="head">Repeat</th> </tr> </thead> <tbody valign="top"> <tr><td>3</td> <td>Prod D, Prod E</td> <td>X</td> </tr> </tbody> </table> </blockquote> <p>Either Product D or Product E or both must be in the sale order and the sum of their quantities must be three.</p> <p>Also note that all the defined criterias must be fulfilled or the program won't be applied.</p> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>Once configured, apply the programs as usual.</p> <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/sale-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/sale-workflow/issues/new?body=module:%20sale_coupon_criteria_multi_product%0Aversion:%2013.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 class="simple"> <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> <li>Pedro M. Baeza</li> <li>David Vidal</li> </ul> </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>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/chienandalu"><img alt="chienandalu" src="https://github.com/chienandalu.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/13.0/sale_coupon_criteria_multi_product">OCA/sale-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>