Odoo18-Base/addons/l10n_it_edi_doi/__init__.py
2025-03-10 10:52:11 +07:00

14 lines
579 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
def _l10n_it_edi_doi_post_init(env):
for company in env['res.company'].search([('chart_template', '=', 'it'), ('parent_id', '=', False)]):
template = env['account.chart.template'].with_company(company)
template._load_data({
'account.tax': template._get_it_edi_doi_account_tax(),
'account.fiscal.position': template._get_it_edi_doi_account_fiscal_position(),
'res.company': template._get_it_edi_doi_res_company(),
})