Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0496fb1
[ADD] account_fiscal_year_auto_create : new module to create automati…
legalsylvain Mar 31, 2021
0e276b4
[UPD] Update account_fiscal_year_auto_create.pot
oca-travis Jul 28, 2021
ae4d284
[UPD] README.rst
OCA-git-bot Jul 28, 2021
da46849
[ADD] icon.png
OCA-git-bot Jul 28, 2021
8237e39
Added translation using Weblate (French)
pasgou Aug 3, 2021
cbe80e4
Translated using Weblate (French)
pasgou Aug 3, 2021
d22ebd3
[IMP] account_fiscal_year_auto_create: black, isort, prettier
legalsylvain Nov 3, 2022
402975f
[MIG] account_fiscal_year_auto_create: from 12.0 to 16.0.
legalsylvain Nov 3, 2022
e73381a
[FIX] typo in DESCRIPTION.rst
legalsylvain Nov 4, 2022
3ab8d17
[UPD] Update account_fiscal_year_auto_create.pot
Feb 4, 2023
df59f2e
[UPD] README.rst
OCA-git-bot Feb 4, 2023
6013c71
account_fiscal_year_auto_create 16.0.1.0.2
OCA-git-bot Feb 4, 2023
14e1bae
Update translation files
weblate Feb 4, 2023
f57c349
Added translation using Weblate (Croatian)
badbole Feb 16, 2023
7933aff
Translated using Weblate (Croatian)
badbole Feb 16, 2023
88423cc
Added translation using Weblate (Spanish)
Gelo-fl Apr 17, 2023
d71de66
Translated using Weblate (Spanish)
Gelo-fl Apr 17, 2023
31d12f6
Added translation using Weblate (French (France) (fr_FR))
sanrav May 10, 2023
8eeb1eb
Translated using Weblate (French)
sanrav May 10, 2023
b80ee5b
Translated using Weblate (French (France) (fr_FR))
sanrav May 10, 2023
337a5c9
[UPD] README.rst
OCA-git-bot Sep 3, 2023
2fff92e
Added translation using Weblate (Italian)
mymage Feb 26, 2024
719b863
Translated using Weblate (Italian)
mymage Feb 26, 2024
a18a7e0
[IMP] account_fiscal_year_auto_create: pre-commit auto fixes
AaronHForgeFlow Dec 10, 2025
45d70a9
[MIG] account_fiscal_year_auto_create: Backport to v15
AaronHForgeFlow Dec 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions account_fiscal_year_auto_create/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=================================
Fiscal Years - Automatic Creation
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:76afc2bf14861ea845353cff82169dd1f3aa4acbe26beea50f69e2b5e518162d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/15.0/account_fiscal_year_auto_create
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_fiscal_year_auto_create
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of Accounting Odoo module, to
auto generate fiscal years.

Once installed, a cron is running each day. It will create, for each company,
a new fiscal year, if it is the last day of the current fiscal year.

This module is interesting specially in multi company context, to avoid annoying setup every year.

The fiscal year created has a classical "12 monthes" duration, but the accountant
can modify it, once created.

Example
~~~~~~~

If a company has it last fiscal year, defined as:

- ``name``: FY 2021-2022
- ``date_from``: 2021-06-01
- ``date_to``: 2022-05-31

When the cron will be executed on May 31, 2022, it will create the following fiscal year:

- ``name``: FY 2022-2023
- ``date_from``: 2022-06-01
- ``date_to``: 2023-05-31

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_fiscal_year_auto_create%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Sylvain LE GAL <https://twitter.com/legalsylvain>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/15.0/account_fiscal_year_auto_create>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_fiscal_year_auto_create/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions account_fiscal_year_auto_create/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Fiscal Years - Automatic Creation",
"summary": "Automatically create new fiscal years, based on the datas"
" of the last fiscal years",
"version": "15.0.1.0.0",
"category": "Accounting",
"author": "GRAP,Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/account-financial-tools",
"license": "AGPL-3",
"depends": [
"account_fiscal_year",
],
"data": [
"data/ir_cron.xml",
],
}
20 changes: 20 additions & 0 deletions account_fiscal_year_auto_create/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record id="cron_fiscal_year_auto_create" model="ir.cron">
<field name="name">Auto Create Fiscal Years</field>
<field name="active" eval="True" />
<field name="model_id" ref="account_fiscal_year.model_account_fiscal_year" />
<field name="state">code</field>
<field name="code">model.cron_auto_create()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="nextcall" eval="(DateTime.today()).strftime('%Y-%m-%d')" />
<field name="numbercall">-1</field>
<field name="user_id" ref="base.user_root" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr ""

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr ""

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr ""
35 changes: 35 additions & 0 deletions account_fiscal_year_auto_create/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-04-17 17:33+0000\n"
"Last-Translator: gelo joga Rodríguez <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr "Creación automática de años fiscales"

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr "FY %(date_to)s - %(date_from)s"

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr "Año Fiscal"
39 changes: 39 additions & 0 deletions account_fiscal_year_auto_create/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-05-10 13:02+0000\n"
"Last-Translator: Sandrine (ACSONE) <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr "Créer Automatiquement Les Exercices Fiscaux"

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr "FY %(date_to)s - %(date_from)s"

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr "Exercice Fiscal"

#, python-format
#~ msgid "FY %s - %s"
#~ msgstr "AF %s - %s"
35 changes: 35 additions & 0 deletions account_fiscal_year_auto_create/i18n/fr_FR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-05-10 13:02+0000\n"
"Last-Translator: Sandrine (ACSONE) <[email protected]>\n"
"Language-Team: none\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr "Création automatique d'années fiscales"

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr "FY %(date_to)s - %(date_from)s"

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr "Année fiscale"
36 changes: 36 additions & 0 deletions account_fiscal_year_auto_create/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-02-16 10:09+0000\n"
"Last-Translator: Bole <[email protected]>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr "Automatski kreiraj nove fiskalne godine"

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr "FG %(date_to)s - %(date_from)s"

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr "Fiskalna godina"
35 changes: 35 additions & 0 deletions account_fiscal_year_auto_create/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_fiscal_year_auto_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-26 16:36+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: account_fiscal_year_auto_create
#: model:ir.actions.server,name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create_ir_actions_server
#: model:ir.cron,cron_name:account_fiscal_year_auto_create.cron_fiscal_year_auto_create
msgid "Auto Create Fiscal Years"
msgstr "Crea automaticamente anno fiscale"

#. module: account_fiscal_year_auto_create
#. odoo-python
#: code:addons/account_fiscal_year_auto_create/models/account_fiscal_year.py:0
#, python-format
msgid "FY %(date_to)s - %(date_from)s"
msgstr "AF %(date_to)s - %(date_from)s"

#. module: account_fiscal_year_auto_create
#: model:ir.model,name:account_fiscal_year_auto_create.model_account_fiscal_year
msgid "Fiscal Year"
msgstr "Anno fiscale"
1 change: 1 addition & 0 deletions account_fiscal_year_auto_create/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_fiscal_year
Loading