Search 1.9 billion lines of Odoo code on GitHub

account_spread_cost_revenue

Author: Onestein,Odoo Community Association (OCA)
License: AGPL-3
Branch: 14-fix-account_cash_deposit-empty
Repository: akretion/account-financial-tools
Dependencies: account, base, and web
Languages: HTML (484, 8.6%), JavaScript (43, 0.8%), PO File (1435, 25.5%), Python (2745, 48.8%), Sass (5, 0.1%), XML (710, 12.6%), and reStructuredText (205, 3.6%)
Other repositories: Alfa-90/account-financial-tools, BDO-ES/account-financial-tools, BT-rmartin/account-financial-tools, CB-Gran-Canaria/account-financial-tools, Callino/account-financial-tools, Change2improve/account-financial-tools, ComitorDevTeam/account-financial-tools, Darknroses/account-financial-tools, Digital5-Odoo/account-financial-tools, DonDxDy/account-financial-tools, ERPLibre/account-financial-tools, FernandoRomera/account-financial-tools, ForgeFlow/account-financial-tools, Gabinete-Digital/account-financial-tools, HomerDeoDatu/account-financial-tools, Ingeos/account-financial-tools, Jarsa/account-financial-tools, LIM465465486/account-financial-tools, LevelPrime/account-financial-tools, Lopsanz/account-financial-tools, Martronic-SA/account-financial-tools, MathBenTech/account-financial-tools, NextERP-Romania/account-financial-tools, Noviat/account-financial-tools, Numigi/account-financial-tools, OCA-MUK/account-financial-tools, OCA/account-financial-tools, PNLUG/account-financial-tools, PlanetaTIC/account-financial-tools, QubiQ/qu-account-financial-tools, SanteLibre/account-financial-tools, Saran440/account-financial-tools, SequarSrl/account-financial-tools, StefanRijnhart/account-financial-tools, Studio73/account-financial-tools, Syci-Consulting/account-financial-tools, TechnovicInfotech/account-financial-tools, Tecnativa/account-financial-tools, Thawah/account-financial-tools, VanMoof/account-financial-tools, Vauxoo/account-financial-tools, aaltinisik/account-financial-tools, acsone/account-financial-tools, agrista/odoo-account-financial-tools, anggadjava/account-financial-tools, ansinaesmejor/account-financial-tools, arikey-pixel/account-financial-tools, augustynr/account-financial-tools, aurestic/account-financial-tools, binovo/account-financial-tools, brain-tec/account-financial-tools, camptocamp/account-financial-tools, coopdevs/account-financial-tools, coopiteasy/account-financial-tools, corporatehub/account-financial-tools, cubells/account-financial-tools, decodio-applications/account-financial-tools, dev-ipredictitsolutions/account-financial-tools, druidoo-dev/account-financial-tools, eLBati/account-financial-tools, ecosoft-odoo/account-financial-tools, elego/account-financial-tools, eribowo/account-financial-tools, espo-tony/account-financial-tools, exaap/account-financial-tools, exosoftware/oca-account-financial-tools, factorlibre/account-financial-tools, fallewi/account-financial-tools, gfcapalbo/account-financial-tools, gitlocalize/account-financial-tools, grindtildeath/account-financial-tools, hbrunn/account-financial-tools, i-vyshnevska/account-financial-tools, jdigiorgio/account-financial-tools, jimhoefnagels/account-financial-tools, jlin70922/account-financial-tools, kittiu/account-financial-tools, kmee/account-financial-tools, legalsylvain/account-financial-tools, lembregtse/account-financial-tools, leonidasthe300/account-financial-tools, lideritjnma/account-financial-tools, luc-demeyer/account-financial-tools, maherjaballi/account-financial-tools, medianecorp/account-financial-tools, nodelynx/account-financial-tools, nuobit/account-financial-tools, o2deepak-zz/account-financial-tools, octavidamtavernes/account-financial-tools, onesteinbv/account-financial-tools, phyokyaw/account-financial-tools, praxigento/OCA-account-financial-tools, primes2h/account-financial-tools, regaby/oca-account-financial-tools, sadeqamin/account-financial-tools, sanrav/account-financial-tools, sanube/account-financial-tools, sendalpegat/account-financial-tools, sergiocorato/account-financial-tools, sohag1990/account-financial-tools, sopanawit/account-financial-tools, steingabelgaard/account-financial-tools, sterling1992/account-financial-tools, sunflowerit/account-financial-tools, syci/account-financial-tools, sygel-technology/account-financial-tools, takinobori/oca-account-financial-tools, tegin/account-financial-tools, tirma-sa/account-financial-tools, trinanda/account-financial-tools, uamsheikh95/account-financial-tools, unitek-solusi/OCA-account-financial-tools, ursais/account-financial-tools, valmarnet/account-financial-tools, vrenaville/account-financial-tools, wahello/account-financial-tools, zarumaru/account-financial-tools, and zeroincombenze/account-financial-tools

<h1 class="title">Cost-Revenue Spread</h1> <p><a class="reference external image-reference" 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 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.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/14.0/account_spread_cost_revenue"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_spread_cost_revenue"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/92/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>Allows to spread costs or revenues over a customizable periods, to even out cost or invoice spikes.</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="id7">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id8">Usage</a><ul> <li><a class="reference internal" href="#define-spread-costs-revenues-board" id="id9">Define Spread Costs/Revenues Board</a></li> <li><a class="reference internal" href="#link-invoice-to-spread-costs-revenues-board" id="id10">Link Invoice to Spread Costs/Revenues Board</a></li> <li><a class="reference internal" href="#define-spread-costs-revenues-template" id="id11">Define Spread Costs/Revenues Template</a></li> </ul> </li> <li><a class="reference internal" href="#changelog" id="id12">Changelog</a><ul> <li><a class="reference internal" href="#id1" id="id13">13.0.1.0.0</a></li> <li><a class="reference internal" href="#id2" id="id14">12.0.2.0.0</a></li> <li><a class="reference internal" href="#id3" id="id15">12.0.1.1.0</a></li> <li><a class="reference internal" href="#id4" id="id16">12.0.1.0.0</a></li> <li><a class="reference internal" href="#id5" id="id17">11.0.1.0.0</a></li> </ul> </li> <li><a class="reference internal" href="#bug-tracker" id="id18">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id19">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id20">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id21">Contributors</a></li> <li><a class="reference internal" href="#other-credits" id="id22">Other credits</a></li> <li><a class="reference internal" href="#maintainers" id="id23">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id7">Configuration</a></h2> <p>To be able to access the full spreading features, the user must belong to <em>Show Full Accounting Features</em> group.</p> <p>On the form view of the company, in the <em>Account Spread</em> tab, you can configure the journals in which the spread journal items will be generated by default:</p> <ul class="simple"> <li>the <em>Default Spread Journal for Revenues</em>,</li> <li>the <em>Default Spread Journal for Expenses</em>.</li> </ul> <p>In the same <em>Account Spread</em> tab, you can also configure the Spread Balance Sheet Accounts used by default:</p> <ul class="simple"> <li>the <em>Default Spread Account for Revenues</em>,</li> <li>the <em>Default Spread Account for Expenses</em>.</li> </ul> <p>This module by default allows the spreading even before the receipt of the invoice or when the invoice is still draft, so that it is possible to work on the plan of the cost/revenue spreading. To disable this feature, on the form view of the company disable the <em>Allow Spread Planning</em> option.</p> <p>In Spread Template, there is also option to <em>Auto assign template on invoice validate</em>, based on the preset invoice line criteria.</p> <p>On the form view of the company, the <em>Auto-post spread lines</em> option forces the account moves created during the cost/revenue spreading to be automatically posted. When this option is false, the user can enable/disable the automatic posting by the flag <em>Auto-post lines</em> present in the spread board.</p> <p>On the form view of the company, enable the <em>Auto-archive spread</em> option if you want the cron job to automatically archive the spreads when all lines are posted.</p> <a name="usage"></a> <h2><a class="toc-backref" href="#id8">Usage</a></h2> <a name="define-spread-costs-revenues-board"></a> <h3><a class="toc-backref" href="#id9">Define Spread Costs/Revenues Board</a></h3> <p>Under Invoicing -&gt; Adviser -&gt; Accounting Entries -&gt; Spread Costs/Revenues, create a new spread board.</p> <p>Complete the definition of the spreading criteria, by setting the the fields:</p> <ul class="simple"> <li><em>Debit Account</em></li> <li><em>Credit Account</em></li> <li><em>Estimated Amount</em> (The total amount to spread)</li> <li><em>Number of Repetitions</em></li> <li><em>Period Type</em> (Duration of each period)</li> <li><em>Start date</em></li> <li><em>Journal</em></li> </ul> <div class="figure"> <img alt="Create a new spread board" src="https://raw.githubusercontent.com/OCA/account-financial-tools/12.0/account_spread_cost_revenue/static/description/spread.png" /> </div> <p>Click on the button on the top-left to calculate the spread lines.</p> <div class="figure"> <img alt="The spreading board is defined" src="https://raw.githubusercontent.com/OCA/account-financial-tools/12.0/account_spread_cost_revenue/static/description/create_spread.png" /> </div> <p>A cron job will automatically create the accounting moves for all the lines having date previous that the current day (today).</p> <div class="figure"> <img alt="The spreading board is updated by the cron job" src="https://raw.githubusercontent.com/OCA/account-financial-tools/12.0/account_spread_cost_revenue/static/description/update_spread.png" /> </div> <p>By default, the status of the created accounting moves is posted. To disable the automatic posting of the accounting moves, set the flag <em>Auto-post lines</em> to False. This flag is only available when the <em>Auto-post spread lines</em> option, present on the form view of the company, is disabled.</p> <p>Click on button <em>Recalculate entire spread</em> button in the spread board to force the recalculation of the spread lines: this will also reset all the journal entries previously created.</p> <a name="link-invoice-to-spread-costs-revenues-board"></a> <h3><a class="toc-backref" href="#id10">Link Invoice to Spread Costs/Revenues Board</a></h3> <p>Create an invoice or vendor bill in draft. On its lines, the spreading right-arrow icon are displayed in dark-grey color.</p> <div class="figure"> <img alt="On the invoice line the spreading icon is displayed" src="https://raw.githubusercontent.com/OCA/account-financial-tools/12.0/account_spread_cost_revenue/static/description/invoice_line_1.png" /> </div> <p>Click on the spreading right-arrow icon. A wizard prompts to enter a <em>Spread Action Type</em>:</p> <ul class="simple"> <li><em>Link to existing spread board</em></li> <li><em>Create from spread template</em></li> <li><em>Create new spread board</em></li> </ul> <p>Select <em>Link to existing spread board</em> and enter the previously generated Spread Board. Click on Confirm button: the selected Spread Board will be automatically displayed.</p> <p>Go back to the draft invoice/bill. The spreading functionality is now enabled on the invoice line: the spreading right-arrow icon is now displayed in green color.</p> <div class="figure"> <img alt="On the invoice line the spreading icon is displayed in green color" src="https://raw.githubusercontent.com/OCA/account-financial-tools/12.0/account_spread_cost_revenue/static/description/invoice_line_2.png" /> </div> <p>Validate the invoice/bill. Click on the spreading (green) right-arrow icon to open the spread board, then click on the smart button <em>Reconciled entries</em>: the moves of the spread lines are reconciled with the move of the invoice line.</p> <p>In case the Subtotal Price of the invoice line is different than the <em>Estimated Amount</em> of the spread board, the spread lines (not yet posted) will be recalculated when validating the invoice/bill.</p> <a name="define-spread-costs-revenues-template"></a> <h3><a class="toc-backref" href="#id11">Define Spread Costs/Revenues Template</a></h3> <p>Under Invoicing -&gt; Configuration -&gt; Accounting -&gt; Spread Templates, create a new spread template.</p> <ul class="simple"> <li><em>Spread Type</em></li> <li><em>Spread Balance Sheet Account</em></li> <li><em>Expense/Revenue Account</em> This option visible if invoice line account is balance sheet account, user need to specify this too.</li> <li><em>Journal</em></li> <li><em>Auto assign template on invoice validate</em></li> </ul> <p>When creating a new Spread Costs/Revenues Board, select the right template. This way the above fields will be copied to the Spread Board.</p> <p>If <em>Auto assign template on invoice validate</em> is checked, this template will be used to auto create spread, if the underlining invoice match the preset product/account/analytic criteria.</p> <a name="changelog"></a> <h2><a class="toc-backref" href="#id12">Changelog</a></h2> <a name="id1"></a> <h3><a class="toc-backref" href="#id13">13.0.1.0.0</a></h3> <ul class="simple"> <li>[MIG] Port account_spread_cost_revenue to V13.</li> </ul> <a name="id2"></a> <h3><a class="toc-backref" href="#id14">12.0.2.0.0</a></h3> <ul class="simple"> <li>[ENH] In spread template, add option to auto create spread on invoice validation</li> </ul> <a name="id3"></a> <h3><a class="toc-backref" href="#id15">12.0.1.1.0</a></h3> <ul class="simple"> <li>[ENH] Add optional Expense/Revenue Account in Chart Template, which can be used in place of account from invoice line to set Expense/Revenue account in the spread</li> </ul> <a name="id4"></a> <h3><a class="toc-backref" href="#id16">12.0.1.0.0</a></h3> <ul class="simple"> <li>[MIG] Port account_spread_cost_revenue to V12.</li> </ul> <a name="id5"></a> <h3><a class="toc-backref" href="#id17">11.0.1.0.0</a></h3> <ul class="simple"> <li>[ADD] Module account_spread_cost_revenue. (<a class="reference external" href="https://github.com/OCA/account-financial-tools/pull/715">#715</a>)</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id18">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/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/account-financial-tools/issues/new?body=module:%20account_spread_cost_revenue%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="#id19">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id20">Authors</a></h3> <ul class="simple"> <li>Onestein</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id21">Contributors</a></h3> <ul class="simple"> <li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li> <li>Kitti U. &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt;</li> </ul> <a name="other-credits"></a> <h3><a class="toc-backref" href="#id22">Other credits</a></h3> <p>Part of the code in this module (in particular the computation of the spread lines) is highly inspired by the Assets Management module from the standard Odoo 11.0 Community developed by Odoo SA.</p> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id23">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 image-reference" href="https://github.com/astirpe"><img alt="astirpe" src="https://github.com/astirpe.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/14.0/account_spread_cost_revenue">OCA/account-financial-tools</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>