Search 1.9 billion lines of Odoo code on GitHub

product_margin_classification

Author: GRAP,Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: acsone/margin-analysis
Dependencies: decimal_precision, product, and sale
Languages: HTML (376, 26.9%), PO File (268, 19.2%), Python (376, 26.9%), XML (283, 20.2%), and reStructuredText (95, 6.8%)
Other repositories: AMhadhbi/sale-workflow, AbdulrhmanGad/sale-workflow, Abranes/sale-workflow, Afoolf/sale-workflow, Alfa-90/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/margin-analysis, Change2improve/sale-workflow, ClearCorp/oca-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/margin-analysis, ERPLibre/sale-workflow, FRANCISCOJUAREZC/sale-workflow, FaTaToo/sale-workflow, FelipeEnriqueGG/sale-workflow, ForgeFlow/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/sale-workflow, JibenCL/sale-workflow, JuaniFreedoo/sale-workflow, KIKOU2016/sale-workflow, Kayuulab/sale-workflow, Khalid-SerpentCS/sale-workflow, KolushovAlexandr/sale-workflow, KonaERP/sale-workflow, KrishnaPrajapati-SerpentCS/sale-workflow, LevelPrime/sale-workflow, LoisRForgeFlow/sale-workflow, MAbdelbaset/sale-workflow, MadsackMediaStore/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/margin-analysis, NeatNerdPrime/sale-workflow, Niboo/sale-workflow, Nikul-Chaudhary/sale-workflow, Nitrokey/odoo-sale-workflow, Numigi/odoo-sale-workflow, OCA-MUK/sale-workflow, OCA/margin-analysis, OCA/sale-workflow, Olageibol/sale-workflow, OmniaGit/sale-workflow, OmniaSolutions/sale-workflow, OpenAT/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, 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, TheCloneMaster/sale-workflow, TimLai125/sale-workflow, Tonow-c2c/sale-workflow, VCLS-org/sale-workflow, VanMoof/sale-workflow, Vauxoo/sale-workflow, VisiionSolucionesTecnologicas/sale-workflow, WilldooIT-Private/sale-workflow, YogeshMahera-SerpentCS/sale-workflow, aacceess75/sale-workflow, aaltinisik/sale-workflow, acsone/sale-workflow, acsonefho/sale-workflow, adolfoeliazat/sale-workflow, agaldona/sale-workflow, ahilali/sale-workflow, akretion/sale-workflow, alessandrocamilli/sale-workflow, alex-vy/sale-workflow, algiopensource/sale-workflow, amendoncabh/sale-workflow, andreampiovesana/sale-workflow, andreasdsp/sale-workflow, andrp92/sale-workflow, angedras/sale-workflow, anhchuyen/sale-workflow, anhvu-sg/sale-workflow, anodino-dev/sale-workflow, antilhue/sale-workflow, apachesep/sale-workflow, apetbiz/sale-workflow, aryajimbaran/sale-workflow, ashmita34/sale-workflow, ashvinkhodifad/sale-workflow, aurestic/sale-workflow, avanzosc/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, bogdanhu/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, click2prasanth/sale-workflow, conandark/sale-workflow, coopiteasy/margin-analysis, coopiteasy/sale-workflow, credativUK/sale-workflow, crnd-inc/sale-workflow, ctmil/sale-workflow, cubells/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, diagramsoftware/sale-workflow, diangamichael/sale-workflow, digitalsatori/sale-workflow, disna-sistemas/sale-workflow, dong-z/sale-workflow, donizupnick/sale-workflow, doun/sale-workflow, dreambits/sale-workflow, druidoo-dev/sale-workflow, dsmerghetto/sale-workflow, dvdhinesh/sale-workflow, eLBati/sale-workflow, eamedrano23/sale-workflow, ecosoft-odoo/sale-workflow, edfrz/sale-workflow, efatto/sale-workflow, ehsu0407/sale-workflow, elego/sale-workflow, emmanueldominguez/sale-workflow, enmasys/sale-workflow, ermannognan/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, fmdl/sale-workflow, focusate/oca-sale-workflow, fruschitaly/sale-workflow, gabriele-baldessari/sale-workflow, gastonfeng/sale-workflow, geluboros/sale-workflow, germanponce/sale-workflow, gfcapalbo/sale-workflow, gobluestingray/sale-workflow, gogomarine/sale-workflow, grap/sale-workflow, grauschnabel/sale-workflow, grindtildeath/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, invitu/sale-workflow, isos/sale-workflow, it-projects-llc/sale-workflow, izzihector/sale-workflow, jado95/sale-workflow, jalaludin/sale-workflow, janani-sankarababu/sale-workflow, jbaudoux/sale-workflow, jchanme/sale-workflow, jeffgrietens/sale-workflow, jeffryjdelarosa/sale-workflow, jeroen7s/sale-workflow, jimhoefnagels/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, kvaldivia/sale-workflow, leNeo/sale-workflow, leemannd/sale-workflow, legalsylvain/margin-analysis, legalsylvain/sale-workflow, lequipeur/sale-workflow, linkitspa/sale-workflow, liweijie0812/sale-workflow, luence/sale-workflow, luismontalba/sale-workflow, lveras/sale-workflow, lweiming/sale-workflow, mahmoudAbdElaziz/sale-workflow, marionumza/sale-workflow, masteriusz/sale-workflow, mayjo79/sale-workflow, mesebin/sale-workflow, meta-it/sale-workflow, mettadipa/sale-workflow, mgosai/sale-workflow, mmequignon/sale-workflow, mobileempire/sale-workflow, moo-master/sale-workflow, mpanarin/sale-workflow, murtuzasaleh/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, oandremendes/sale-workflow, odoonz/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, oukacha/sale-workflow, panduwiyasatelkom/sale-workflow, paolomonniLP/sale-workflow, petertbexley/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, rdeheele/sale-workflow, redblow/sale-workflow, rjpathan/sale-workflow, rm-jamotion/sale-workflow, rohitramnani1994/sale-workflow, rosalesdc/sale-workflow, rosenvladimirov/sale-workflow, royalline1/sale-workflow, rsullivan2704/sale-workflow, ruter-lyu/sale-workflow, safyric/sale-workflow, sagar-developer-92/sale-workflow, samsagaz/sale-workflow, samuelsenjaya/sale-workflow, sanube/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, spacimek/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, tostmohd/sale-workflow, tschanzt/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, vialaurea/OCA-sale-workflow, victoralmau/sale-workflow, vidtsin/sale-workflow, wahello/sale-workflow, weddingjuma/sale-workflow, whnr/sale-workflow, wtaferner/sale-workflow, xcgd/sale-workflow, xpertiz/sale-workflow, xtendoo-corporation/sale-workflow, yostashiro/sale-workflow, yuniesky1986/sale-workflow, yuzhengxing/sale-workflow, yweng8111/sale-workflow, and zeroincombenze/sale-workflow

<h1 class="title">Product Margin Classification</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/margin-analysis/tree/12.0/product_margin_classification"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/margin-analysis-12-0/margin-analysis-12-0-product_margin_classification"><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/132/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module is designed to extend Sale Price computation in Odoo.</p> <p>This module add a new model 'Margin Classifications' linked to Product variants.</p> <p>A margin classification has a 'Profit Margin' field and extra fields to manage computation method, like in Pricelist Item model (Markup Rate, Rounding and Surcharge fields)</p> <p>If product has a margin classification defined and the theoretical price is not the same as the sale price, an extra field 'Theoretical Price' is displayed, based on the Margin Classification and a button is available to change sale price.</p> <img alt="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/product_product_form.png" src="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/product_product_form.png" /> <p>On the Margin classification Form, user can change computation fields. (Margin, Rounding method, ...) Three buttons are available to apply theoretical prices: * to all products, * only for products that are too expensive * only for products that are too cheap</p> <img alt="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/margin_classification_form.png" src="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/margin_classification_form.png" /> <p>By clicking on the smart buttons on the right part of the form, all the products will be displayed, and user can easily change prices</p> <img alt="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/product_product_tree_incorrect_price.png" src="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/product_product_tree_incorrect_price.png" /> <p>User can also see easily products with incorrect margins in the margin classification tree views:</p> <img alt="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/margin_classification_tree.png" src="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_margin_classification/static/description/margin_classification_tree.png" /> <p>This module use both [Markup](<a class="reference external" href="https://en.wikipedia.org/wiki/Markup_(business">https://en.wikipedia.org/wiki/Markup_(business</a>)) and [Profit Margin](<a class="reference external" href="https://en.wikipedia.org/wiki/Profit_margin">https://en.wikipedia.org/wiki/Profit_margin</a>) concepts.</p> <p>You could be interested by native Pricelist functionalities, setting sale prices based on Cost prices. The main problem of this design is that sale price change automaticaly when cost price changes, that is not desired in some user cases. For exemple, if you have a shop, you want to changes sale prices when customers is not in the shop, and after having changed labels in the shop.</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="#known-issues-roadmap" id="id2">Known issues / Roadmap</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> <ul class="simple"> <li>Go to : 'Sale &gt; Configuration &gt; Products &gt; Margin Classifications</li> <li>Create new classifications</li> <li>Set classification to your products</li> </ul> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2> <ul class="simple"> <li>This module will not work for variants that have a not null <code>price_extra</code> value, due to the poor design of Odoo product module. This issue can be maybe fixed in new version of Odoo.</li> <li>Onchanges features will works properly in the product.product form view. In the product.template form view, user have to save the current changes, to see the proposal of the new price displayed.</li> </ul> <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/margin-analysis/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/margin-analysis/issues/new?body=module:%20product_margin_classification%0Aversion:%2012.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>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li> <li>Marc Poch Mallandrich &lt;<a class="reference external" href="mailto:mpoch&#64;planetatic.com">mpoch&#64;planetatic.com</a>&gt;</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/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/12.0/product_margin_classification">OCA/margin-analysis</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>