Repository
OCA/account-closing · module folder · Try on Runboat
Module version
1.1.0
Category
Accounting & Finance
Folder size
0.41 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-closing
Last tracking update
2026-08-07 08:42:59
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Alexis de Lattre, eLBati, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_cutoff_accrual_subscription
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.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
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)

New fields (5)
  • end_date Date
    help='This field is only for the forecast mode'
  • include_tax_lines Boolean
    help="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_ids Many2many → account.journal
    check_company=True column1='cutoff_id' column2='journal_id' compute='_compute_source_journal_ids' domain="[('company_id', '=', company_id)]" precompute=True readonly=False store=True string='Source Journals' args: 'account.journal'
  • start_date Date
    help='This field is only for the forecast mode'
  • state Selection
    selection_add=[('forecast', 'Forecast')]
Public methods (3)
  • forecast_disable(self)
  • forecast_enable(self)
  • get_lines(self)

New fields (4)
  • cutoff_days Integer
    help='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_date Date
    readonly=True
  • start_date Date
    readonly=True
  • total_days Integer
    readonly=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…