Search 1.9 billion lines of Odoo code on GitHub

pos_margin

Author: GRAP, Odoo Community Association (OCA)
License: AGPL-3
Branch: 14.0
Repository: acsone/pos
Dependencies: point_of_sale
Languages: CSS (7, 0.7%), HTML (400, 39.6%), JavaScript (77, 7.6%), PO File (149, 14.8%), Python (184, 18.2%), XML (95, 9.4%), and reStructuredText (97, 9.6%)
Other branches: 10.0, 10.0-abi_master, 10.0-imp-travis-dro, 10.0-mig-pos_cash_move_reason_mgs, 10.0-mig-pos_sequence_ref_number_mgs, 10.0-mig_pos_autoreconcile_mgs, 10.0-pos_cash_deposit-bwi, 10.0-pos_pay_invoice-bwi, 10.0-pos_pricelist-sbj, 10.0-transactions-ref, 11.0, 12.0, 13.0, 13.0-slg_master, 14.0-abi_master, 14.0-account_payment_terminal-sbj, 14.0-fix_pos_cash_move_reason_rule, 14.0-pos-payment-terminal-cancel-sbi, 14.0-pos-reset-search-dro, 14.0-pos_no_cash_bank_statement_too_restrictive, 14.0-pos_reason-cpi, 8.0, 8.0-abi_master, 8.0-add-pos-cash-deposit-ape, and 8.0-add-pos-globalization-ape
Other repositories: 2FM/pos, AK017/pos, AMEERAAA/pos, Aboulwafi/pos, AcruxLab/pos, AntonioOERP/pos, CB-Gran-Canaria/pos, CGenie/pos, Callino/pos, Change2improve/pos, ClearCorp/oca-pos, Comunitea/pos, ControlWebManager/pos, Cywaithaka/pos, DatabasesWorks/pos-1, Dobtor-OCA/pos, Domatix/pos, ERPLibre/pos, EddieIndboo/pos, Ellyan/pos, ElvenStudio/pos, EstebanMonge/pos, Firasbessaad/pos, Fkawala/pos, ForgeFlow/pos, GabbasovDinar/pos, Gabinete-Digital/pos, Gofekra/pos, GrupoAlvamex/pos, GuavanaUX/pos, Guobower/pos, Hectorline/pos, HirenDangar/pos, Ingeos/pos, JayVora-SerpentCS/pos-1, Jeisonpernia/pos, JohnTheBeloved/pos, Jzano/pos, KasunDA/pos, Khanstore/pos, KolushovAlexandr/pos, LasLabs/pos, LevelPrime/pos, Mahmoud-Alaa-Eldeen/pos, Martronic-SA/pos, MathBenTech/pos, Mckamba12/pos, Mefistous/pos, MindAndGo/pos, Murtaza-Mithaiwala/pos, NL66278/pos, NachoAlesLopez/pos, NathanQj/pos, NeatNerdPrime/pos, OCA-MUK/pos, OCA/pos, ORETEK/pos, Odilio/pos, Ommo73/pos, OpusVL/pos, PierrickBrun/pos, PlanetaTIC/pos, PrasongDev/pos-1, QANSEE/pos, QubiQ/pos, RaulCarbonell/pos, SanteLibre/pos, SerpentConsultingServices/pos, SetRac/pos, SeuMarco/pos, SimoRubi/pos, StefanRijnhart/pos, Studio73/pos, TRESCLOUD/pos, Tecnativa/pos, Theseverinn/pos, Tonow-c2c/pos, Turiinjargal/pos, VisiionSolucionesTecnologicas/pos, abassvoice/pos, abdulhamidalsalman/pos, abiezersifontes/pos, acsonefho/pos, adeel982010/pos, adolfoeliazat/pos, ahilali/pos, ahmed22s885111qq/pos, ajinvn2019/pos, akretion/pos, albertkouemou/pos, amendoncabh/pos-extras, ammarofficewla/pos, amygeis/pos, anhvu-sg/pos, ansinaesmejor/pos, apetbiz/pos, apwellington/pos-1, aroodooteam/pos, atilamedia/pos, aurestic/pos, azmeuk/pos, bacgroup/pos, bankmahal/pos, berpweb/pos, bimajatiwijaya/pos, binhexsystems/pos, bishalgit/pos, camptocamp/pos, carrm29/pos, ccarly/pos, chetanrdhaduk/pos, cmayo/pos, coopiteasy/pos, corsisa/pos, cristinamartinrod/pos, cvinh/odoo-generico, darmaa/pos, detian08/pos, diagramsoftware/pos, diegogd/pos, druidoo-dev/pos, dsasoftware/odoo-generico, e-COSI/pos, eLBati/pos, edkroked/pos, elhamdaoui/pos, elvirekemajou/pos, enmasys/pos, eribowo/pos, etobella/pos, evansochuka/pos, exosoftware/oca-pos, factorlibre/pos, fanguloa/pos, fauzi-tsani/pos, fayezt/pos, fedibits/pos, flotho/pos, fmdl/pos, fraxnet/pos, gaelTorrecillas/pos, globalic/pos, grap/pos, grethellgarcia/pos, guadaltech/pos, haroldtamo/pos, haryoran04/pos, haylahi/odoo-generico, heymanh/pos, hibou-io/oca-pos, hoangpq/pos, hpatelserpentcs/pos, iRichGit/pos, iceship/odoo-generico, initOS/pos, invitu/pos, isos/odoo-generico, isos/pos, isoscl/pos, jajunero/pos, jalaludin/pos, javaaid/pos, jesmar81/odoo-generico, jvpacoin/pos, kach200/pos, karouani/pos, keadanis/pos, kemekongfrancois/pos, kh-hathout/pos, kmee/pos, lambda-is/pos, lauracvilla-zz/pos, leelapriskila/pos, legalsylvain/pos, leonidasthe300/pos, lideritjnma/pos, linuxnow/pos, llucho/odoo-generico, lollia6/pos-1, lukehuang/pos, lutonda/pos, makeplerc/pos, manuelcalerosolis/pos, marionumza/pos, mettadipa/pos, minorisa/pos, mnajjari49/pos, mnoukrati/pos, mondoraemon/pos, nabima/pos, neohckim/pos, nilshamerlinck/pos, odooerpperu/odoo-generico, odoosoft/pos, open-synergy/pos, oswaldasmith/pos, othmancs/pos, ovnicraft/pos, petypi/pos, phuctranerp/pos, popcomputadores-desenv/pos, primes2h/pos, pscloud/pos, pythoner-3k/pos, quentinDupont/pos, r-sierra/pos, ramperma/odoo-generico, regaby/pos, resources-hub/pos, retail-ecommerce/pos, reynaldiyosfino/pos, rm-jamotion/pos, robertsvx27/pos, rossasa/pos, royalline1/pos, rudisulistyo/pos-1, rupa-acespritech/pos, sanube/pos, saonam/pos, sc4you/pos, sebastiken/pos, sendalpegat/pos, simahawk/pos, simonjejcic/pos, simplifysolutions/pos, soadrca/pos, socomp/pos, solbutec/pos, solvosci/pos, sotav/pos, spacemonkeythe/pos, ssaid/pos, stesi/pos, straziboy/pos, subteno-it/pos, sunflowerit/pos, syci/pos, takobi-online/pos, tanceee/pos, tegin/pos, thmaph/pos, timbze/pos, tonihr/pos, tools-env/pos, trinanda/pos, uktc87504/pos, unitek-solusi/OCA-pos, valenciaricardos/pos, valmarnet/pos, vertelab/odoo-pos, vmcloudsolution/odoo-generico, wahello/oca-pos, wajidksa/pos-1, weddingjuma/pos, weisk/pos, y2gsmith/pos, yasmanycastillo/pos, ythak-ylog/pos, yusniermatos/pos, and zarumaru/pos

<h1 class="title">PoS Order Margin</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/pos/tree/14.0/pos_margin"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_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/184/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of point of sale to support margin on pos orders.</p> <p>This gives the profitability by calculating the difference between the Unit Price and Cost Price.</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="id3">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id4">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id5">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#changelog" id="id6">Changelog</a><ul> <li><a class="reference internal" href="#id1" id="id7">14.0.1.0.0</a></li> <li><a class="reference internal" href="#id2" id="id8">13.0.1.0.0</a></li> </ul> </li> <li><a class="reference internal" href="#bug-tracker" id="id9">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id10">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id11">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id12">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id13">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id3">Configuration</a></h2> <ul class="simple"> <li>If you want to disable the display of the margin, in the front-office UI, you can uncheck the check box in the <code>pos.config</code> form:</li> </ul> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_config_form.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_config_form.png" /> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id4">Usage</a></h2> <p><strong>In the PoS Front Office</strong></p> <ul class="simple"> <li>Make an order. Each time a line is added, updated, or deleted, the margin and the margin rate will be updated.</li> </ul> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_front_end.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_front_end.png" style="width: 800px;" /> </div> <p><strong>In the PoS Back Office</strong></p> <p>To use this module, you need to:</p> <ul class="simple"> <li>Go to 'Point Of Sale' / 'Orders' / 'Orders'</li> <li>Open an order</li> </ul> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_order_form.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_margin/static/description/pos_order_form.png" style="width: 800px;" /> </div> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id5">Known issues / Roadmap</a></h2> <p>This dependency can be removed, when Odoo Core will be correctly refactored, moving this <code>&#64;api.model</code> function in a more generic module (<code>account</code> for exemple).</p> <a name="changelog"></a> <h2><a class="toc-backref" href="#id6">Changelog</a></h2> <a name="id1"></a> <h3><a class="toc-backref" href="#id7">14.0.1.0.0</a></h3> <ul class="simple"> <li>Migrate to V14.0</li> </ul> <a name="id2"></a> <h3><a class="toc-backref" href="#id8">13.0.1.0.0</a></h3> <ul class="simple"> <li>Migrate to V13.0</li> <li>Reuse <code>sale_margin</code> computation to handle multi currency context.</li> <li>Correct computation of margin, if a module that adds <code>uom_id</code> on <code>pos.order.line</code> is installed.</li> <li>Add test</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id9">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/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/pos/issues/new?body=module:%20pos_margin%0Aversion:%2014.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="#id10">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id11">Authors</a></h3> <ul class="simple"> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id12">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL (<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>)</li> <li>Wolfgang Pichler</li> <li>Murtaza Mithaiwala (<a class="reference external" href="https://twitter.com/MurtazaMithaiw4">https://twitter.com/MurtazaMithaiw4</a>)</li> <li>Dhara Solanki &lt;<a class="reference external" href="mailto:dhara.solanki&#64;initos.com">dhara.solanki&#64;initos.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id13">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/pos/tree/14.0/pos_margin">OCA/pos</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>