Search 1.9 billion lines of Odoo code on GitHub

product_standard_margin

Author: Camptocamp,GRAP,Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: OCA/margin-analysis
Dependencies: account, decimal_precision, and product
Languages: HTML (361, 48.1%), PO File (105, 14.0%), Python (165, 22.0%), XML (44, 5.9%), and reStructuredText (76, 10.1%)
Other branches: 10.0, 14.0, 15.0, 6.1, 7.0, 8.0, and 9.0
Other repositories: AMhadhbi/margin-analysis, Anferi/margin-analysis, Antiun/margin-analysis, Change2improve/margin-analysis, ClearCorp/oca-margin-analysis, Danisan/margin-analysis, ERPLibre/margin-analysis, Endika/margin-analysis, ForgeFlow/margin-analysis, Gabinete-Digital/margin-analysis, Guobower/margin-analysis, Ingeos/margin-analysis, MathBenTech/margin-analysis, NeatNerdPrime/margin-analysis, OCA-MUK/margin-analysis, PlanetaTIC/margin-analysis, SSISoftware/margin-analysis, SanteLibre/margin-analysis, SeuMarco/margin-analysis, Tecnativa/margin-analysis, Trust-Code/margin-analysis, VisiionSolucionesTecnologicas/margin-analysis, VitalPet/margin-analysis, acsone/margin-analysis, adhoc-dev/margin-analysis, akretion/margin-analysis, alanljj/margin-analysis, apachesep/margin-analysis, apetbiz/margin-analysis, aschenkels-ictstudio/margin-analysis, aurestic/margin-analysis, bmya/margin-analysis, bvkl/margin-analysis, camptocamp/margin-analysis, coopiteasy/margin-analysis, crsilveira/margin-analysis, diagramsoftware/margin-analysis, diggy128/margin-analysis, dvitme/margin-analysis, elmonitor/margin-analysis, fanguloa/margin-analysis, garzadekoster/margin-analysis, grap/margin-analysis, guewen/margin-analysis, gurneyalex/margin-analysis, haroldtamo/margin-analysis, i-vyshnevska/margin-analysis, isoscl/margin-analysis, jalaludin/margin-analysis, jgrandguillaume/margin-analysis, joseernestomendez/margin-analysis, josuf567/margin-analysis, ko90thu/margin-analysis, koble/margin-analysis, legalsylvain/margin-analysis, lideritjnma/margin-analysis, likaiyuan/margin-analysis, mdietrichc2c/margin-analysis, molandtoxx/margin-analysis, moylop260/margin-analysis, muguli22/margin-analysis, numerigraphe/margin-analysis, petypi/margin-analysis, pscloud/margin-analysis, puchisco/margin-analysis, rosenvladimirov/margin-analysis, rossasa/margin-analysis, rschnapka/margin-analysis, rsullivan2704/margin-analysis, sagar-developer-92/margin-analysis, sanube/margin-analysis, savoirfairelinux/margin-analysis, simplifysolutions/margin-analysis, sodexis/margin-analysis, sudhu26/margin-analysis, tangaraj/margin-analysis, ursais/margin-analysis, versada/margin-analysis, x0rzkov/odoo-margin-analysis, and yvaucher/margin-analysis

<h1 class="title">Product Margin and Margin Rate</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_standard_margin"><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_standard_margin"><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>Add a field on the product form that compute the standard (or theorical) margin based on the current values of sale and standard price present in the product form. We take care of taxe included or excluded.</p> <p>It will just compute it as follow: (Sale Price without tax - Standard Price) / Sale Price without tax</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_standard_margin/static/description/product_form.png" src="https://raw.githubusercontent.com/OCA/margin-analysis/12.0/product_standard_margin/static/description/product_form.png" /> </div> <p><strong>Note:</strong></p> <p>As this module will base his simple computation on sale and cost prices, it suppose you have them both in the same currency (the price type must of the same currency for both of them). Remember this is the default OpenERP configuration (price type of all product price fields are set as the same as the company currency). We don't take care of it cause otherwise we should have added a dependency on sale module.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#known-issues-roadmap" id="id1">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id1">Known issues / Roadmap</a></h2> <ul class="simple"> <li>This module will not work properly if used in a multicompany context with product prices depending on the company.</li> <li>It should be great to use the odoo widget <code>percentpie</code> for the display of the field <code>standard_margin_rate</code> but for the time being, the field is not displayed properly. Ref of the Odoo Issue: <a class="reference external" href="https://github.com/odoo/odoo/issues/42869">https://github.com/odoo/odoo/issues/42869</a></li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">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_standard_margin%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="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Camptocamp</li> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Alexandre Fayolle &lt;<a class="reference external" href="mailto:alexandre.fayolle&#64;camptocamp.com">alexandre.fayolle&#64;camptocamp.com</a>&gt;</li> <li>Yannick Vaucher &lt;<a class="reference external" href="mailto:yannick.vaucher&#64;camptocamp.com">yannick.vaucher&#64;camptocamp.com</a>&gt;</li> <li>Joël Grand-Guillaume &lt;<a class="reference external" href="mailto:joel.grand-guillaume&#64;camptocamp.com">joel.grand-guillaume&#64;camptocamp.com</a>&gt;</li> <li>Sylvain Le Gal (<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>)</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">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_standard_margin">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>

Dependency Graph