Repository
OCA/account-financial-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-financial-tools
Last tracking update
2026-08-07 09:06:24
Authors
Odoo Community Association (OCA), Agile Business Group, Camptocamp SA
Maintainers
Odoo Community Association (OCA), Agile Business Group, Camptocamp SA
Committers
Weblate, OCA-git-bot, oca-ci, Borruso
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to create and edit fiscal years from the menu:

Invoicing \> Configuration \> Accounting \> Fiscal Years

.. figure:: static/description/account_fiscal_year_form.png

The start and end dates of the current fiscal years are then available
in the company list and form views.

.. figure:: static/description/res_company_list.png

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
account_fiscal_year_form_view Form view for account.fiscal.year account.fiscal.year form New
account_fiscal_year_list_view List view for account.fiscal.year account.fiscal.year list New
account_fiscal_year_search_view Search view for account.fiscal.year account.fiscal.year search New
res_company_view_form res.company form Inherits base.view_company_form
res_company_view_tree res.company tree Inherits base.view_company_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (4)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • date_from Date
    help='Start Date, included in the fiscal year.' required=True string='Start Date'
  • date_to Date
    help='Ending Date, included in the fiscal year.' required=True string='End Date'
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (2)
  • fiscal_year_date_from Date
    compute='_compute_fiscal_year_dates' compute_sudo=True string='Start Date of the Fiscal Year'
  • fiscal_year_date_to Date
    compute='_compute_fiscal_year_dates' compute_sudo=True string='End Date of the Fiscal Year'
Public methods (1)
  • compute_fiscalyear_dates(self, current_date)
    Computes the start and end dates of the fiscal year where the given 'date' belongs to. :param current_date: A datetime.date/datetime.datetime object. :return: A dictionary containing: * date_from * date_to * [Optionally] record: The fiscal year record.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…