Skip to content
Snippets Groups Projects
Commit 9084ebbb006a authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Remove fiscal year last day config settings, now obsolete

parent e22ec740cade
No related branches found
No related tags found
2 merge requests!30Add period_id in aml tree view (cf account_consult MO16-190),!29🚑 fix populate
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
16.0.1.0.3 16.0.1.0.3
---------- ----------
Fix populate, demo data, tests. * Fix populate, demo data, tests.
* Remove fiscal year last day config settings, now obsolete.
16.0.1.0.2 16.0.1.0.2
---------- ----------
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
"views/account_move.xml", "views/account_move.xml",
"views/account_period.xml", "views/account_period.xml",
"views/account_fiscal_year.xml", "views/account_fiscal_year.xml",
"views/res_config_settings.xml",
], ],
"installable": True, "installable": True,
} }
...@@ -4,5 +4,4 @@ ...@@ -4,5 +4,4 @@
account_move, account_move,
account_move_line, account_move_line,
account_period, account_period,
res_config_settings,
) )
##############################################################################
#
# Accounting periods, for Odoo
# Copyright © 2022 XCG Consulting <https://odoo.consulting/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
"""Add some fields added by the account module that are not present in any views."""
_inherit = "res.config.settings"
fiscalyear_last_day = fields.Integer(
related="company_id.fiscalyear_last_day",
readonly=False,
required=True,
help="The last day of the month will be used if the chosen day doesn't exist.",
)
fiscalyear_last_month = fields.Selection(
related="company_id.fiscalyear_last_month",
readonly=False,
required=True,
)
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.account_period</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="40" />
<field name="inherit_id" ref="base.res_config_settings_view_form" />
<field name="arch" type="xml">
<div data-key="account" position="inside">
<h2>Fiscal years</h2>
<div
class="row mt16 o_settings_container"
name="fiscalyear_setting_container"
>
<div class="col-12 col-lg-6 o_setting_box" id="fiscalyear">
<div class="o_setting_left_pane" />
<div class="o_setting_right_pane">
<span class="o_form_label">End date</span>
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
/>
<div class="text-muted">
Those options will allow to indicate the last day and
month of a fiscal year.
</div>
<div class="content-group" id="fiscalyear_last">
<div class="mt16">
<label
for="fiscalyear_last_day"
class="o_light_label"
/>
<field
name="fiscalyear_last_day"
class="oe_inline"
/>
<label
for="fiscalyear_last_month"
class="o_light_label"
/>
<field
name="fiscalyear_last_month"
class="oe_inline"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</field>
</record>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment