[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) <vin@odoo.com>
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
Nicolas Viseur (vin)
2023-06-12 12:41:52 +02:00
parent 39a7cdca21
commit 12473cb0c0
+4 -1
View File
@@ -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),
},
}