diff --git a/account_edit_fiscalyear_end_date/__init__.py b/account_edit_fiscalyear_end_date/__init__.py new file mode 100644 index 000000000000..7fbcfccdd98f --- /dev/null +++ b/account_edit_fiscalyear_end_date/__init__.py @@ -0,0 +1,4 @@ +# SPDX-FileCopyrightText: 2024 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later +from . import models diff --git a/account_edit_fiscalyear_end_date/__manifest__.py b/account_edit_fiscalyear_end_date/__manifest__.py new file mode 100644 index 000000000000..183697226693 --- /dev/null +++ b/account_edit_fiscalyear_end_date/__manifest__.py @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2024 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +{ + "name": "Account Edit Fiscal Year", + "summary": """ + Edit the fiscal year end month and end day""", + "version": "16.1.0.0", + "category": "Uncategorized", + "website": "https://coopiteasy.be", + "author": "Coop IT Easy SC", + "maintainers": ["victor-champonnois"], + "license": "AGPL-3", + "application": False, + "depends": ["account"], + "excludes": [], + "data": ["views/account_config_settings_view.xml"], + "demo": [], + "qweb": [], +} diff --git a/account_edit_fiscalyear_end_date/models/__init__.py b/account_edit_fiscalyear_end_date/models/__init__.py new file mode 100644 index 000000000000..0deb68c46806 --- /dev/null +++ b/account_edit_fiscalyear_end_date/models/__init__.py @@ -0,0 +1 @@ +from . import res_config_settings diff --git a/account_edit_fiscalyear_end_date/models/res_config_settings.py b/account_edit_fiscalyear_end_date/models/res_config_settings.py new file mode 100644 index 000000000000..a998bf3679a6 --- /dev/null +++ b/account_edit_fiscalyear_end_date/models/res_config_settings.py @@ -0,0 +1,8 @@ +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + fiscalyear_last_day = fields.Integer(related="company_id.fiscalyear_last_day", readonly=False) + fiscalyear_last_month = fields.Selection(related="company_id.fiscalyear_last_month", readonly=False) diff --git a/account_edit_fiscalyear_end_date/readme/CONTRIBUTORS.rst b/account_edit_fiscalyear_end_date/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..146abeb90773 --- /dev/null +++ b/account_edit_fiscalyear_end_date/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Coop IT Easy SC `_: + + * Victor Champonnois diff --git a/account_edit_fiscalyear_end_date/readme/DESCRIPTION.rst b/account_edit_fiscalyear_end_date/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..af37cd7c94e1 --- /dev/null +++ b/account_edit_fiscalyear_end_date/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Edit the fiscal year end month and end day. diff --git a/account_edit_fiscalyear_end_date/views/account_config_settings_view.xml b/account_edit_fiscalyear_end_date/views/account_config_settings_view.xml new file mode 100644 index 000000000000..acfe0f81cc3e --- /dev/null +++ b/account_edit_fiscalyear_end_date/views/account_config_settings_view.xml @@ -0,0 +1,32 @@ + + + + Edit fiscal year + res.config.settings + + + +
+
+ + Fiscal Year Last Month + +
+ +
+
+
+
+
+ + Fiscal Year Last Day + +
+ +
+
+
+
+
+
+