Skip to content

Commit

Permalink
[ADD] account_edit_fiscalyear_end_date
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Jul 31, 2024
1 parent f5af0cc commit eea02f4
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account_edit_fiscalyear_end_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
from . import models
21 changes: 21 additions & 0 deletions account_edit_fiscalyear_end_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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": [],
}
1 change: 1 addition & 0 deletions account_edit_fiscalyear_end_date/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_config_settings
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions account_edit_fiscalyear_end_date/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Victor Champonnois
1 change: 1 addition & 0 deletions account_edit_fiscalyear_end_date/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Edit the fiscal year end month and end day.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">Edit fiscal year</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='fiscalyear']" position="after">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane">
<span class="o_form_label">
Fiscal Year Last Month
</span>
<div>
<field name="fiscalyear_last_month" />
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane">
<span class="o_form_label">
Fiscal Year Last Day
</span>
<div>
<field name="fiscalyear_last_day" />
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

0 comments on commit eea02f4

Please sign in to comment.