Account Cut-off Start End Dates
account_cutoff_start_end_dates · OCA/account-closing
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module allows you to easily compute the prepaid revenue/expenses and also the revenue/expense accruals by using the Start Date and End Date fields of invoice lines/journal items.
For example, if you have an insurance contrat invoiced in April 2020 that run from April 1st 2020 to March 31st 2021, you will enter these dates as start and end dates on the supplier invoice line. If your fiscal year ends on December 31st 2020, 3 months of expenses are part of the 2021 fiscal year and should not be part of the 2020 fiscal year. So, thanks to this module, you will create a Prepaid Expense on December 31st 2020 and Odoo will identify this expense with the 3 months that are after the cut-off date and propose to generate the appropriate cut-off journal entry.
Another example: you have a UPS invoice dated January 5th 2021 that covers the shipments of December 2020. When you encode this vendor bill, set the start date as December 1st 2020 and the end date as December 31st 2020. Then, thanks to this module, you will create an Expense Accrual dated December 31st 2020 that will generate a cut-off journal entry that will "move" the UPS expense from 2021 to 2020.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_cutoff_filter |
account.cutoff.start.end.dates.search | account.cutoff | search | Inherits account_cutoff_base.account_cutoff_filter |
account_cutoff_form |
account.cutoff.start.end.dates.form | account.cutoff | form | Inherits account_cutoff_base.account_cutoff_form |
account_cutoff_line_form |
account.cutoff.line.prepaid.form | account.cutoff.line | form | Inherits account_cutoff_base.account_cutoff_line_form |
account_cutoff_line_tree |
account.cutoff.line.prepaid.tree | account.cutoff.line | tree | Inherits account_cutoff_base.account_cutoff_line_tree |
account_cutoff_tree |
account.cutoff.start.end.dates.tree | account.cutoff | tree | Inherits account_cutoff_base.account_cutoff_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
end_dateDatehelp='This field is only for the forecast mode' -
include_tax_linesBooleanhelp="If enabled, tax move lines (display_type = 'tax') will also be included in the cutoff computation alongside product lines. Tax lines must have start and end dates set to be included." -
source_journal_idsMany2many → account.journalcheck_company=Truecolumn1='cutoff_id'column2='journal_id'compute='_compute_source_journal_ids'domain="[('company_id', '=', company_id)]"precompute=Truereadonly=Falsestore=Truestring='Source Journals' args: 'account.journal' -
start_dateDatehelp='This field is only for the forecast mode' -
stateSelectionselection_add=[('forecast', 'Forecast')]
-
forecast_disable(self) -
forecast_enable(self) -
get_lines(self)
-
cutoff_daysIntegerhelp='In regular mode, this is the number of days after the cut-off date. In forecast mode, this is the number of days between the start date and the end date.'readonly=True -
end_dateDatereadonly=True -
start_dateDatereadonly=True -
total_daysIntegerreadonly=True
No public methods.
Loading…
Loading…
Loading…
Loading…