mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 20:22:03 +02:00
14 lines
554 B
Python
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
|