Search 1.9 billion lines of Odoo code on GitHub

product_variant_configurator

Author: AvanzOSC,Tecnativa,ACSONE SA/NV,Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0
Repository: brain-tec/product-variant
Dependencies: decimal_precision, and product
Languages: PO File (8370, 85.1%), Python (1234, 12.5%), XML (157, 1.6%), and reStructuredText (75, 0.8%)
Other branches: 11.0, 12.0, 13.0, 14.0, 15.0, and 9.0
Other repositories: 3dfxmadscientist/odoo-extra-1, AMhadhbi/product-variant, Alfa-90/product-variant, Arsalan88/openerp-extra-6.1, BorjaAlgios/product-variant, Callino/product-variant, Change2improve/product-variant, ClearCorp/oca-product-variant, Comunitea/product-variant, Confidere/openerp-extra-bundle, Cuackmire/openerp-extra-6.1, Daniel-CA/product-variant, DarioLodeiros/product-variant, DeeCorrector/odoo-extra, Dobtor-OCA/product-variant, ERPLibre/product-variant, ForgeFlow/product-variant, Gabinete-Digital/product-variant, GiacoJona/product-variant, Gofekra/product-variant, GrupoAlvamex/product-variant, Guobower/product-variant, Ingeos/product-variant, Isendir/openerp-extra-6.1, Khanstore/odoo-extra, Manimudi/openerp-extra-6.1, Martronic-SA/product-variant, MathBenTech/product-variant, NeatNerdPrime/product-variant, OCA-MUK/product-variant, OCA/product-variant, OdooBulgaria/odoo-extra-1, OpenPymeMx/product-variant, OpusVL/product-variant, OutillageStEtienne/product-variant, PESOL/product-variant, PandaRoux8/odoo-extra, PlanetaTIC/product-variant, SalahAdDin/product-variant, SanteLibre/product-variant, SetnoRac/openerp-extra-6.1, SeuMarco/product-variant, SimoRubi/product-variant, SimoneVagile/product-variant, Studio73/product-variant, TRESCLOUD/product-variant, Tecnativa/product-variant, Vauxoo/product-variant, VisiionSolucionesTecnologicas/product-variant, Yakulu/product-variant, a7madz90/openerp-extra-bundle, aaltinisik/product-variant, abdulhamidalsalman/product-variant, acsone/product-variant, ahilali/product-variant, ajefernandez/openerp-extra-6.1, akretion/product-variant, amendoncabh/product-variant, anndream/odoo-extra-1, ap1689/odoo-extra, apachesep/product-variant, apetbiz/product-variant, arasty/odoo-extra, aryajimbaran/product-variant, ashokjaga/openerp-extra-bundle, augustodinizl/product-variant, aurestic/product-variant, averni/openerp-extra-bundle, bala4901/openerp-extra-bundle, bealdav/product-variant, bishalgit/product-variant, bitodoo/product-variant, bvkl/product-variant, bypazz/odoo-extra, camptocamp/product-variant, coopiteasy/product-variant, cubells/product-variant, dcorio/product-variant, devenmoga/openerp-extra-6.1, diggy128/product-variant, dong-z/product-variant, druidoo-dev/product-variant, dvanoverloop/product-variant, dw250100785/openerp-extra-bundle, dzikri/openerp-extra-6.1, eLBati/product-variant, ernestotejeda/product-variant, etorona1/openerp-extra-bundle, exosoftware/oca-product-variant, factorlibre/openerp-extra-6.1, factorlibre/product-variant, fanzalika/odoo-extra, fmarowski/odoo-extra, gd-openfire/openerp-extra-6.1, grindtildeath/product-variant, gurneyalex/product-variant, haroldtamo/product-variant, hashirharis/odoo-extra, healperci/openerp-extra-6.1, hinfo506/product-variant, iamyeonhan/product-variant, idealisconsultingbe/product-variant, igallart/product-variant, izzihector/product-variant, j0rdm4n/openerp-extra-6.1, jamotion/product-variant, jlaloux/product-variant, joaoisobr/openerp-extra-6.1, joeadcock/product-variant, jschmitt76/openerp-extra-6.1, kmee/product-variant, kos94ok-3D/product-variant, ladada200/openerp-extra-6.1, landyorlando/odoo-extra, lideritjnma/product-variant, mahboubilahcen/openerp-extra-6.1, marrik76/openerp-extra-6.1, mbtanweer/openerp-extra-6.1, melany05/openerp-extra-6.1, mga-odoo/odoo-extra, mh88/openerp-extra-6.1, miihir9898/openerp-extra-6.1, mikelarre/product-variant, mileo/openerp-extra-6.1, miltonlab/openerp-extra-6.1, mohitg1312/openerp-extra-bundle, morpheo909/openerp-extra-6.1, mostafasayed/openerp-extra-bundle, mykelu/openerp-extra-6.1, nabilgeek/openerp-extra-bundle, odoobgorg/OCA-product-variant, omarlemorac/openerp-extra-6.1, onurugur/product-variant, oscars8a/product-variant, osfp-Pakistan/product-variant, p-tombez/product-variant, pedrobaeza/product-variant, praxya/product-variant, presenceverte/product-variant, pscloud/product-variant, puchisco/product-variant, qtheuret/product-variant, ranimadrid/openerp-extra-6.1, rchavik/product-variant, rellummuller/openerp-extra-6.1, rikvermeer/product-variant, rogeriofalcone/openerp-1, rosenvladimirov/product-attribute, rosenvladimirov/product-variant, rschnapka/odoo-extra, rsullivan2704/product-variant, ruihua1970/product-variant, rymtec/openerp-extra-6.1, salahable/odoo-extra, samirdouichi/openerp-extra-6.1, samsagaz/product-variant, sandip-mangukiya/openerp-extra-bundle, sanube/product-variant, scirta/odoo-extra, segarra89/openerp-extra-bundle, sendalpegat/product-variant, sergiocorato/product-variant, sgeerish/openerp-extra-6.1, simoneversienti/product-variant, sixtofarfan/openerp-extra-bundle, slim1616/openerp-extra-bundle, spoerp/product-variant, sum1201/product-variant, syci/openerp-extra-6.1, tegin/product-variant, tejastank/openerp-extra-6.1, tipiv/odoo-extra, valmarnet/product-variant, vincentcd/openerp-extra-bundle, vnc-biz/openerp-extra-bundle, westlyou/product-variant, willmakenoise/product-variant, x0rzkov/odoo-product-variant, yosuaalvin/openerp-extra-6.1, yuniesky1986/openerp-extra-6.1, yusnel-rojas/odoo-extra, zeroheure/product-variant, and zhuyangbin/product-variant

<a class="reference external image-reference" 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.svg"> </a> <a name="product-variant-configurator"></a> <h2>Product Variant Configurator</h2> <p>Provides an abstract model for product variant configuration. It provides the basic functionality for presenting a table with the attributes of a template and the possibility to select one of the valid values. You can try this functionality creating a product variant directly selecting a product template that has attributes.</p> <p>This module also prevents in a configurable way the creation of the product variants when defining the attributes and attribute values of the product template.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>(after installing <cite>sales</cite> application)</p> <p>To configure the creation of the variants behaviour, you need to:</p> <ol class="arabic simple"> <li>Go to <code>Sales &gt; Settings &gt; Configuration</code>, and select &quot;Products can have several attributes, defining variants (Example: size, color,...)&quot; on &quot;Product Variants&quot; section.</li> <li>Go to <code>Sales &gt; Products</code>, and select a product.</li> <li>On the Variants tab edit the value of the field <code>Variant Creation</code>.</li> <li>If you want to stop the automatic creation of the variant, and have the same behaviour for all the products in the same category, go to <code>Sales &gt; Products &gt; Product Categories</code>, select the category and check the checkbox <code>Don't create variants automatically</code>.</li> </ol> <a name="usage"></a> <h3>Usage</h3> <p>(after installing <cite>sales</cite> application)</p> <ol class="arabic simple"> <li>Go to <code>Sales &gt; Sales &gt; Product Variants</code>.</li> <li>Click on &quot;Create&quot; button for creating a new one.</li> <li>On the field &quot;Product Template&quot;, select a product template that has several attributes.</li> <li>A table with the attributes of the template will appear below.</li> <li>Select all the attribute values and click on &quot;Save&quot; button.</li> <li>A new product variant will be created for that attributes.</li> <li>An error will raise if there's another variant with the same attribute values or if you haven't filled all the required values.</li> </ol> <a name="developers"></a> <h4>Developers</h4> <p>To use product configurator in your model, you need to:</p> <ol class="arabic simple"> <li>The product.configurator is an abstract model, hence, to be used it must be inherited in your model:</li> <li>If the model you're inheriting has <code>name</code> attribute, and it uses the related parameter you must override it.</li> </ol> <pre> <code>class AModel(models.Model): _inherit = ['module.model', 'product.configurator'] name = fields.Char(related=&quot;delegated_field.related_field&quot;)</code> </pre> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/137/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-variant/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 feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Oihane Crucelaegui &lt;<a class="reference external" href="mailto:oihanecrucelaegi&#64;avanzosc.es">oihanecrucelaegi&#64;avanzosc.es</a>&gt;</li> <li>Pedro M. Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;tecnativa.com">pedro.baeza&#64;tecnativa.com</a>&gt;</li> <li>Ana Juaristi &lt;<a class="reference external" href="mailto:ajuaristio&#64;gmail.com">ajuaristio&#64;gmail.com</a>&gt;</li> <li>Thomas Binsfeld &lt;<a class="reference external" href="mailto:thomas.binsfeld&#64;acsone.eu">thomas.binsfeld&#64;acsone.eu</a>&gt;</li> <li>Zakaria Makrelouf (acsone) &lt;<a class="reference external" href="mailto:z.makrelouf&#64;gmail.com">z.makrelouf&#64;gmail.com</a>&gt;</li> <li>Stéphane Bidoul &lt;<a class="reference external" href="mailto:stephane.bidoul&#64;acsone.eu">stephane.bidoul&#64;acsone.eu</a>&gt;</li> <li>Laurent Mignon &lt;<a class="reference external" href="mailto:laurent.mignon&#64;acsone.eu">laurent.mignon&#64;acsone.eu</a>&gt;</li> <li>David Vidal &lt;<a class="reference external" href="mailto:david.vidal&#64;tecnativa.com">david.vidal&#64;tecnativa.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <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>This module is maintained by the OCA.</p> <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>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>