From 12473cb0c0c037d3248904b244400ca600cd409c Mon Sep 17 00:00:00 2001 From: "Nicolas Viseur (vin)" Date: Mon, 29 May 2023 06:52:32 +0000 Subject: [PATCH] [IMP] l10n_au: The opening statement should be dated to the 30th of june Since the fiscal-year end this day. Task id #3338971 closes odoo/odoo#124607 X-original-commit: c2640430874771d7db9cd587e7a9a04a01f7ae42 Related: odoo/enterprise#42349 Signed-off-by: Nicolas Viseur (vin) Signed-off-by: Florian Gilbert (flg) --- addons/l10n_au/models/template_au.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/l10n_au/models/template_au.py b/addons/l10n_au/models/template_au.py index 9794181d1fb..f13e2a9bd29 100644 --- a/addons/l10n_au/models/template_au.py +++ b/addons/l10n_au/models/template_au.py @@ -1,5 +1,5 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import models +from odoo import fields, models from odoo.addons.account.models.chart_template import template @@ -37,5 +37,8 @@ class AccountChartTemplate(models.AbstractModel): 'account_journal_early_pay_discount_gain_account_id': 'au_61620', 'fiscalyear_last_month': '6', 'fiscalyear_last_day': 30, + # Changing the opening date to the first day of the fiscal year. + # This way the opening entries will be set to the 30th of June. + 'account_opening_date': fields.Date.context_today(self).replace(month=7, day=1), }, }