[IMP] l10n_in: change fiscalyear_last_month to march

With this commit: we are changing fiscalyear_last_month to March if
chart template is Indian chart template as fiscal year ends in 31 March
in India.

task-2723849

closes odoo/odoo#81982

Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
Mohammed Shekha
2022-04-19 14:19:40 +02:00
committed by Jigar Vaghela
parent 235afe276d
commit 0fc93fb1e4
+7
View File
@@ -17,6 +17,13 @@ class AccountChartTemplate(models.Model):
journal['name'] = _('Tax Invoices')
return res
def _load(self, company):
res = super(AccountChartTemplate, self)._load(company)
if self == self.env.ref("l10n_in.indian_chart_template_standard"):
company.write({'fiscalyear_last_month': '3'})
return res
class AccountTaxTemplate(models.Model):
_inherit = 'account.tax.template'