Odoo18-Base/addons/l10n_eu_oss/models/chart_template.py
2025-03-10 11:12:23 +07:00

16 lines
423 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountChartTemplate(models.Model):
_inherit = 'account.chart.template'
def _load(self, company):
rslt = super()._load(company)
if company.account_fiscal_country_id in self.env.ref('base.europe').country_ids:
company._map_eu_taxes()
return rslt