oca-ocb-l10n_europe/odoo-bringout-oca-ocb-l10n_nl/l10n_nl/models/account_chart_template.py
Ernad Husremovic 7721452493 19.0 vanilla
2026-03-09 09:31:28 +01:00

14 lines
554 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
def _post_load_data(self, template_code, company, template_data):
super()._post_load_data(template_code, company, template_data)
if template_code == 'nl':
if cash_tag := self.env.ref('l10n_nl.account_tag_25', raise_if_not_found=False):
company.account_journal_suspense_account_id.tag_ids += cash_tag
company.transfer_account_id.tag_ids += cash_tag