Search 1.9 billion lines of Odoo code on GitHub

sale_line_quantity_properties_based

Author: Agile Business Group,Odoo Community Association (OCA)
License: AGPL-3
Branch: 8.0
Repository: Abranes/sale-workflow
Dependencies: product, and sale_properties_dynamic_fields
Languages: PO File (1316, 84.4%), Python (109, 7.0%), XML (15, 1.0%), YAML (66, 4.2%), and reStructuredText (54, 3.5%)
Other branches: 7.0
Other repositories: 1000camels/sale-workflow, AMhadhbi/sale-workflow, AbdelghaniDr/sale-workflow, AbdulrhmanGad/sale-workflow, Afoolf/sale-workflow, Alfa-90/sale-workflow, Antiun/sale-workflow, App247/sale-workflow, BDO-ES/sale-workflow, BIZ4Africa/sale-workflow, BT-dherreros/sale-workflow, BT-jortells/sale-workflow, BeAntares/sale-workflow, BenjaHe/sale-workflow, BradooTech/sale-workflow, Bubbles-IT/sale-workflow, CGenie/sale-workflow, Callino/sale-workflow, Chandresh-SerpentCS/sale-workflow, Change2improve/sale-workflow, ClearCorp/oca-sale-workflow, Comunitea/sale-workflow, Dangar-Serpentcs/sale-workflow, DarioLodeiros/sale-workflow, Darknroses/sale-workflow, Digital5-Odoo/sale-workflow, DjaitaiKoffi/sale-workflow, Dobtor-OCA/sale-workflow, Domatix/sale-workflow, Drsmartinkus/sale-workflow, ERPLibre/sale-workflow, Endika/sale-workflow, FRANCISCOJUAREZC/sale-workflow, FaTaToo/sale-workflow, FelipeEnriqueGG/sale-workflow, ForgeFlow/sale-workflow, GGamblin/sale-workflow, GSLabIt/sale-workflow, Gabinete-Digital/sale-workflow, Garrincha11-Python/sale-workflow, Glue-Software-Engineering-AG/sale-workflow, Gofekra/sale-workflow, GrupoAlvamex/sale-workflow, Guobower/sale-workflow, Hamza-Talibi/sale-workflow, HirenDangar/sale-workflow, Idealisconsulting/sale-workflow, Ingeos/sale-workflow, Jarsa-dev/sale-workflow, Jarsa/sale-workflow, JayVora-SerpentCS/sale-workflow, JibenCL/sale-workflow, JuaniFreedoo/sale-workflow, KIKOU2016/sale-workflow, Kayuulab/sale-workflow, KennyLeung/sale-workflow, Khalid-SerpentCS/sale-workflow, KolushovAlexandr/sale-workflow, KonaERP/sale-workflow, KrishnaPrajapati-SerpentCS/sale-workflow, LL-Akeera/sale-workflow, LasLabs/sale-workflow, LevelPrime/sale-workflow, LoisRForgeFlow/sale-workflow, MAbdelbaset/sale-workflow, MRonz70/sale-workflow, ManjunathRB/sale-workflow, Martronic-SA/sale-workflow, MathBenTech/sale-workflow, MediaJockey/sale-workflow, Mefistous/sale-workflow, MindAndGo/sale-workflow, MjAbuz/sale-workflow, Montxu/sale-workflow, Murtaza-SerpentCS/sale-workflow, NachoAlesLopez/sale-workflow, NeatNerdPrime/sale-workflow, Niboo/sale-workflow, Nikul-Chaudhary/sale-workflow, Nitrokey/odoo-sale-workflow, Numigi/odoo-sale-workflow, OCA-MUK/sale-workflow, OCA/sale-workflow, OdooBulgaria/sale-workflow, Olageibol/sale-workflow, Olivier-LAURENT/sale-workflow, OmniaGit/sale-workflow, OmniaSolutions/sale-workflow, OpenAT/sale-workflow, OpenCode/sale-workflow, Openies/sale-workflow, OpusVL/sale-workflow, OthmaneGhandi/sale-workflow, OutillageStEtienne/sale-workflow, PCatinean/sale-workflow, PESOL/sale-workflow, Palpid/sale-workflow, PlanetaTIC/sale-workflow, QubiQ/sale-workflow, Ramkumarodoo/sale-workflow, RealSolutionsLux/sale-workflow, RibraX/sale-workflow, RoelAdriaans/sale-workflow, Rona111/sale-workflow, RosleStores/sale-workflow, SDIsl/sale-workflow, SSISoftware/sale-workflow, SanteLibre/sale-workflow, ScopeaFrance/sale-workflow, SequarSrl/sale-workflow, SerpentCS/sale-workflow, SerpentConsultingServices/sale-workflow, SeuMarco/sale-workflow, SimoRubi/sale-workflow, Siraparn/sale-workflow, SmithLin0618/sale-workflow, SodexisTeam/sale-workflow, SportPursuit/sale-workflow, StefanRijnhart/sale-workflow, Studio73/sale-workflow, Swapnesh-SerpentCS/sale-workflow, TDu/sale-workflow, TRESCLOUD/sale-workflow, Tecnativa/sale-workflow, TheCloneMaster/sale-workflow, TimLai125/sale-workflow, Tonow-c2c/sale-workflow, Trust-Code/sale-workflow, VCLS-org/sale-workflow, VanMoof/sale-workflow, Vauxoo/sale-workflow, VisiionSolucionesTecnologicas/sale-workflow, VitalPet/sale-workflow, WilldooIT-Private/sale-workflow, YogeshMahera-SerpentCS/sale-workflow, aacceess75/sale-workflow, aaltinisik/sale-workflow, abdo3247/sale-workflow, abstract-open-solutions/sale-workflow, acsone/sale-workflow, acsonefho/sale-workflow, adhoc-dev/sale-workflow, adolfoeliazat/sale-workflow, agaldona/sale-workflow, ahilali/sale-workflow, akretion/sale-workflow, alanljj/sale-workflow, alessandrocamilli/sale-workflow, alex-vy/sale-workflow, alexsandrohaag/sale-workflow, algiopensource/sale-workflow, alva-kristianto/sale-workflow, amendoncabh/sale-workflow, andhit-r/sale-workflow, andreampiovesana/sale-workflow, andreasdsp/sale-workflow, andrp92/sale-workflow, angedras/sale-workflow, angelmoya/sale-workflow, anhchuyen/sale-workflow, anhvu-sg/sale-workflow, anodino-dev/sale-workflow, antilhue/sale-workflow, anybox/sale-workflow, apachesep/sale-workflow, apertoso/sale-workflow, apetbiz/sale-workflow, archetipo/sale-workflow, aryajimbaran/sale-workflow, ashmita34/sale-workflow, ashvinkhodifad/sale-workflow, aurestic/sale-workflow, avanzosc/sale-workflow, avoinsystems/sale-workflow, bassammannaa/sale-workflow, bealdav/sale-workflow, bg4hkq/sale-workflow, bhtabor/sale-workflow, binovo/sale-workflow, bizzappdev/sale-workflow, bizzappdevteam/sale-workflow, bjornbillen/sale-workflow, bmya/sale-workflow, bodedra/sale-workflow, bodi000/sale-workflow, bogdanhu/sale-workflow, bplancher/sale-workflow, br3athein/sale-workflow, brain-tec/sale-workflow, brainbeanapps/sale-workflow, camptocamp/sale-workflow, captivea-dcr/sale-workflow, carlos-domatix/sale-workflow, celismax/sale-workflow, ciel-it/sale-workflow, click2prasanth/sale-workflow, clubit/sale-workflow, conandark/sale-workflow, coopiteasy/sale-workflow, credativUK/sale-workflow, crnd-inc/sale-workflow, ctmil/sale-workflow, cubells/sale-workflow, damdam-s/sale-workflow, damendieta/sale-workflow, dani-xtendoo/sale-workflow, daramousk/sale-workflow, darshan-odoo/sale-workflow, ddico/sale-workflow, detian08/sale-workflow, devang-dreambits/sale-workflow, dhp-denero/sale-workflow, diagramsoftware/sale-workflow, diangamichael/sale-workflow, diggy128/sale-workflow, digitalsatori/sale-workflow, disna-sistemas/sale-workflow, dong-z/sale-workflow, donizupnick/sale-workflow, doun/sale-workflow, dreambits/sale-workflow, dreispt/sale-workflow, druidoo-dev/sale-workflow, dsmerghetto/sale-workflow, duanyp1991/sale-workflow, dvdhinesh/sale-workflow, eLBati/sale-workflow, eamedrano23/sale-workflow, ecosoft-odoo/sale-workflow, edfrz/sale-workflow, eezee-it/sale-workflow, efatto/sale-workflow, ehsu0407/sale-workflow, elego/sale-workflow, emmanueldominguez/sale-workflow, enmasys/sale-workflow, ermannognan/sale-workflow, erocre/sale-workflow, esousy/sale-workflow, espo-tony/sale-workflow, estheraka/sale-workflow, esthermm/sale-workflow, etobella/sale-workflow, exosoftware/oca-sale-workflow, ezodoo/sale-workflow, factorlibre/sale-workflow, fallewi/sale-workflow, fawyna/sale-workflow, florian-dacosta/sale-workflow, fmdl/sale-workflow, focusate/oca-sale-workflow, forvas/sale-workflow, franksl/sale-workflow, fruschitaly/sale-workflow, gabriele-baldessari/sale-workflow, garzadekoster/sale-workflow, gastonfeng/sale-workflow, geluboros/sale-workflow, geosun8/sale-workflow, germanponce/sale-workflow, gfcapalbo/sale-workflow, gobluestingray/sale-workflow, gogomarine/sale-workflow, grap/sale-workflow, grauschnabel/sale-workflow, grindtildeath/sale-workflow, gsunjka/sale-workflow, guewen/sale-workflow, gurneyalex/sale-workflow, haninada/sale-workflow, haroldtamo/sale-workflow, hbrunn/sale-workflow, heymanh/oca-sale-workflow, hibou-io/oca-sale-workflow, hieulucky111/sale-workflow, hinfo506/sale-workflow, hippe-67/sale-workflow, hkbluesky/sale-workflow, humanilog/sale-workflow, hurrinico/sale-workflow, i-vyshnevska/sale-workflow, ice0072/sale-workflow, id10tttt/sale-workflow, igallart/sale-workflow, iledarn/sale-workflow, incaser/sale-workflow, initOS/sale-workflow, inspyration/sale-workflow, invitu/sale-workflow, isos/sale-workflow, it-projects-llc/sale-workflow, izzihector/sale-workflow, jackethu/sale-workflow, jado95/sale-workflow, jalaludin/sale-workflow, jaleelpoovan/sale-workflow, janani-sankarababu/sale-workflow, jbaudoux/sale-workflow, jchanme/sale-workflow, jeffgrietens/sale-workflow, jeffryjdelarosa/sale-workflow, jeroen7s/sale-workflow, jimhoefnagels/sale-workflow, jjscarafia/sale-workflow, jobiols/oca-sale-workflow, joe69/sale-workflow, josuf567/sale-workflow, jromeroarg/sale-workflow, jvpascual/sale-workflow, kittiu/sale-workflow, kmee/sale-workflow, kongrattapong/sale-workflow, kryskool/sale-workflow, ktecsrl/sale-workflow, kundan12verma/sale-workflow, kvaldivia/sale-workflow, lbelorgey/sale-workflow, leNeo/sale-workflow, leangjia/sale-workflow, leemannd/sale-workflow, legalsylvain/sale-workflow, lepistone/sale-workflow, lequipeur/sale-workflow, lideritjnma/sale-workflow, linkitspa/sale-workflow, liweijie0812/sale-workflow, luence/sale-workflow, luismontalba/sale-workflow, luistorresm/sale-workflow, lveras/sale-workflow, lweiming/sale-workflow, maheeptathgur-rb/sale-workflow, mahmoudAbdElaziz/sale-workflow, maljac/sale-workflow, marcelomora/sale-workflow, marionumza/sale-workflow, masteriusz/sale-workflow, mayjo79/sale-workflow, mdietrichc2c/sale-workflow, mesebin/sale-workflow, meta-it/sale-workflow, mettadipa/sale-workflow, mgosai/sale-workflow, michaelchong2005/sale-workflow, mikevhe18/sale-workflow, mmequignon/sale-workflow, mobileempire/sale-workflow, mohamedhabibchallouf/sale-workflow, molandtoxx/sale-workflow, mongramosjr/sale-workflow, moo-master/sale-workflow, moulayrachidhachimi/sale-workflow, moylop260/sale-workflow, mpanarin/sale-workflow, mr-led/sale-workflow, murtuzasaleh/sale-workflow, mylbco/sale-workflow, myonnet/oca-sale-workflow, nestorwheelock/sale-workflow, newtratip/sale-workflow, nicolasjelincic/sale-workflow, nikitavaghela/sale-workflow, nikul-serpentcs/sale-workflow, niulinlnc/sale-workflow, nizarudheen/sale-workflow, noorealam96/sale-workflow, novawish/sale-workflow, nucleoosystem/sale-workflow, numerigraphe/sale-workflow, oandremendes/sale-workflow, obied/sale-workflow, odoobgorg/OCA-sale-workflow, odooerpperu/sale-workflow, odoonz/sale-workflow, odoousers2014/sale-workflow, oihane/sale-workflow, omalbastin/sale-workflow, one2pret/sale-workflow, onurugur/sale-workflow, open-net-sarl/sale-workflow, open-synergy/sale-workflow, opmaurya1995/sale-workflow, osiell/sale-workflow, osstw/sale-workflow, oukacha/sale-workflow, panduwiyasatelkom/sale-workflow, paolomonniLP/sale-workflow, pedrobaeza/sale-workflow, petertbexley/sale-workflow, petrus-v/sale-workflow, phongyanon/sale-workflow, phucngta/sale-workflow, piensom/sale-workflow, popcomputadores-desenv/sale-workflow, pscloud/sale-workflow, pythoner-3k/sale-workflow, quentinDupont/sale-workflow, railsuser2014/sale-workflow, rdeheele/sale-workflow, redblow/sale-workflow, richard-willdooit/sale-workflow, rjpathan/sale-workflow, rlizana/sale-workflow, rm-jamotion/sale-workflow, rohitramnani1994/sale-workflow, rosalesdc/sale-workflow, rossasa/sale-workflow, rousseldenis/sale-workflow, royalline1/sale-workflow, rschnapka/sale-workflow, rsullivan2704/sale-workflow, ruter-lyu/sale-workflow, rven/sale-workflow, safyric/sale-workflow, sagar-developer-92/sale-workflow, samsagaz/sale-workflow, samuelsenjaya/sale-workflow, sanube/sale-workflow, savoirfairelinux/sale-workflow, saxomanu/sale-workflow, sbejaoui/sale-workflow, sc4you/sale-workflow, scigghia/sale-workflow, sendalpegat/sale-workflow, sergiocorato/sale-workflow, serpentcs-dev1/sale-workflow, sewisoft/sale-workflow, sgheller/sale-workflow, sihemrdid/sale-workflow, simahawk/sale-workflow, simosuu/sale-workflow, skeller1/sale-workflow, smadco/sale-workflow, smellems/sale-workflow, sodexis/sale-workflow, southasia/sale-workflow, spacimek/sale-workflow, spontaneousorder/sale-workflow, sudhir-erpharbor/sale-workflow, sudhir-serpentcs/sale-workflow, sunflowerit/sale-workflow, sunshineLhj/sale-workflow, sygel-technology/sale-workflow, sylvainvh/sale-workflow, tafaRU/sale-workflow, takinobori/oca-sale-workflow, tegin/sale-workflow, tfossoul/sale-workflow, thinkopensolutions/oca-sale-workflow, thomaspaulb/sale-workflow, thomaspot/sale-workflow, tirma-sa/sale-workflow, tj612/sale-workflow, tjuola/sale-workflow, tostmohd/sale-workflow, tschanzt/sale-workflow, tuananhphucthanh/sale-workflow, unitek-solusi/OCA-sale-workflow, ursais/sale-workflow, valley51/sale-workflow, valmarnet/sale-workflow, vcloud9ray/sale-workflow, vdedyukhin/sale-workflow, versada/sale-workflow, veryberry/sale-workflow, vialaurea/OCA-sale-workflow, victoralmau/sale-workflow, victormmtorres/sale-workflow, vidtsin/sale-workflow, vrenaville/sale-workflow, wahello/sale-workflow, weddingjuma/sale-workflow, whnr/sale-workflow, wtaferner/sale-workflow, xcgd/sale-workflow, xpansa/sale-workflow, xpertiz/sale-workflow, xtendoo-corporation/sale-workflow, yelizariev/sale-workflow, yostashiro/sale-workflow, yuniesky1986/sale-workflow, yuzhengxing/sale-workflow, yweng8111/sale-workflow, zeroincombenze/sale-workflow, and zmakrelouf/sale-workflow

<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> <a name="sale-line-quantity-properties-based"></a> <h2>Sale line quantity properties based</h2> <p>This module allows the calculation of the product quantity on the basis of a formula that considers the properties specified by the user on the sale order line and on the quantity (UoS).</p> <a name="example"></a> <h3>Example</h3> <p>Provided the sale of a given number of pieces (shelves), that may be ’x’ meter long and ’y’ meter large, the formula enables the calculation of the total area sold expressed in square meters:</p> <blockquote> 10 [pcs of] (4 m x 0.5 m) shelves = 20 m² of wood</blockquote> <p>In order to have this function working, it is necessary to have the user proceed as follows:</p> <p>Then s/he shall create properties such as ‘length 4’, ‘width 0.5’. (Note: this can be more easily achieved by using the modules 'sale_properties_easy_creation' and/or 'sale_properties_dynamic_fields')</p> <dl class="docutils"> <dt>Properties must respect the following criteria:</dt> <dd><ul class="first last simple"> <li>Name: ‘length 1’, ‘length 4’, ‘width 0.5’</li> <li>Property Group : either ‘length’ or ‘width’</li> <li>Value : the corresponding quantity (1, 4, 0.5...)</li> </ul> </dd> <dt>Property 'length 4'</dt> <dd><ul class="first last simple"> <li>Name: ‘length 4’</li> <li>Property Group : ‘length’</li> <li>Value : 4</li> </ul> </dd> <dt>Property 'width 0.5'</dt> <dd><ul class="first last simple"> <li>Name: ‘width 0.5’</li> <li>Property Group : ‘width’</li> <li>Value : 0.5</li> </ul> </dd> </dl> <p>After this, the formula 'surface' must be created and associated to the product:</p> <pre> <code lang="python">result = float(properties['length']) * float(properties['width']) * qty_uos</code> </pre> <p>Upon the registering of the order, the user will apply in the properties field the desired properties (in this example the ‘length 4’ and ‘width 2’), the needed formula (in this example 'surface') and last the quantity (UoS).</p> <a name="usage"></a> <h4>Usage</h4> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/167/8.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> <h4>Bug Tracker</h4> <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 feedback <a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_line_quantity_properties_based%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">here</a>.</p> <a name="credits"></a> <h4>Credits</h4> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Alex Comba &lt;<a class="reference external" href="mailto:alex.comba&#64;agilebg.com">alex.comba&#64;agilebg.com</a>&gt;</li> <li>Lorenzo Battistini &lt;<a class="reference external" href="mailto:lorenzo.battistini&#64;agilebg.com">lorenzo.battistini&#64;agilebg.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h3>Maintainer</h3> <a class="reference external image-reference" href="http://odoo-community.org"><img alt="Odoo Community Association" src="http://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="http://odoo-community.org">http://odoo-community.org</a>.</p>