Package: odoo12-addon-account-spread-cost-revenue
Allows to spread costs or revenues over a customizable periods, to even out cost or invoice spikes.Table of contentsConfigurationUsageDefine Spread Costs/Revenues BoardLink Invoice to Spread Costs/Revenues BoardDefine Spread Costs/Revenues TemplateChangelog12.0.2.0.012.0.1.1.012.0.1.0.011.0.1.0.0Bug TrackerCreditsAuthorsContributorsOther creditsMaintainersConfigurationTo be able to access the full spreading features, the user must belong toShow Full Accounting Featuresgroup.On the form view of the company, in theAccount Spreadtab, you can configure
the journals in which the spread journal items will be generated by default:theDefault Spread Journal for Revenues,theDefault Spread Journal for Expenses.In the sameAccount Spreadtab, you can also configure the Spread Balance Sheet Accounts used by default:theDefault Spread Account for Revenues,theDefault Spread Account for Expenses.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 theAllow Spread Planningoption.In Spread Template, there is also option toAuto assign template on invoice validate, based on the preset invoice line criteria.On the form view of the company, theAuto-post spread linesoption 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 flagAuto-post linespresent in the spread board.On the form view of the company, enable theAuto-archive spreadoption if you want the
cron job to automatically archive the spreads when all lines are posted.UsageDefine Spread Costs/Revenues BoardUnder Invoicing -> Adviser -> Accounting Entries -> Spread Costs/Revenues, create a new spread board.Complete the definition of the spreading criteria, by setting the the fields:Debit AccountCredit AccountEstimated Amount(The total amount to spread)Number of RepetitionsPeriod Type(Duration of each period)Start dateJournalClick on the button on the top-left to calculate the spread lines.A cron job will automatically create the accounting moves for all the lines having date previous that the current day (today).By default, the status of the created accounting moves is posted.
To disable the automatic posting of the accounting moves, set the flagAuto-post linesto False.
This flag is only available when theAuto-post spread linesoption, present on the form view of the company, is disabled.Click on buttonRecalculate entire spreadbutton in the spread board to force the recalculation of the spread lines:
this will also reset all the journal entries previously created.Link Invoice to Spread Costs/Revenues BoardCreate an invoice or vendor bill in draft. On its lines, the spreading right-arrow icon are displayed in dark-grey color.Click on the spreading right-arrow icon. A wizard prompts to enter aSpread Action Type:Link to existing spread boardCreate from spread templateCreate new spread boardSelectLink to existing spread boardand enter the previously generated Spread Board. Click on Confirm button:
the selected Spread Board will be automatically displayed.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.Validate the invoice/bill. Click on the spreading (green) right-arrow icon to open the spread board, then click
on the smart buttonReconciled entries: the moves of the spread lines are reconciled with the move of the invoice line.In case the Subtotal Price of the invoice line is different than theEstimated Amountof the spread board, the spread
lines (not yet posted) will be recalculated when validating the invoice/bill.Define Spread Costs/Revenues TemplateUnder Invoicing -> Configuration -> Accounting -> Spread Templates, create a new spread template.Spread TypeSpread Balance Sheet AccountExpense/Revenue AccountThis option visible if invoice line account is balance sheet account, user need to specify this too.JournalAuto assign template on invoice validateWhen creating a new Spread Costs/Revenues Board, select the right template.
This way the above fields will be copied to the Spread Board.IfAuto assign template on invoice validateis checked, this template will be used to auto create spread, if the underlining invoice match the preset product/account/analytic criteria.Changelog12.0.2.0.0[ENH] In spread template, add option to auto create spread on invoice validation12.0.1.1.0[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 spread12.0.1.0.0[MIG] Port account_spread_cost_revenue to V12.11.0.1.0.0[ADD] Module account_spread_cost_revenue.
(#715)Bug TrackerBugs are tracked onGitHub Issues.
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 welcomedfeedback.Do not contact contributors directly about support or help with technical issues.CreditsAuthorsOnesteinContributorsAndrea Stirpe <a.stirpe@onestein.nl>Kitti U. <kittiu@ecosoft.co.th>Other creditsPart 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.MaintainersThis module is maintained by the OCA.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.Currentmaintainer:This module is part of theOCA/account-financial-toolsproject on GitHub.You are welcome to contribute. To learn how please visithttps://odoo-community.org/page/Contribute.