Skip to content
Health
85/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 5 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.41 MB
Module directory on disk
Code analysis 0 migration notes 2 models 5 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_cutoff_accrual_subscription

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…