1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_be_reports/__init__.py
2024-12-10 09:04:09 +07:00

23 lines
927 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
from . import report
def _l10n_be_reports_post_init(env):
for company in env['res.company'].search([('chart_template', '=', 'be_comp')], order="parent_path"):
ChartTemplate = env['account.chart.template'].with_company(company)
company_data = ChartTemplate._get_be_comp_reports_res_company(company.chart_template)
ChartTemplate._load_data({
'res.company': company_data,
})
for company in env['res.company'].search([('chart_template', '=', 'be_asso')], order="parent_path"):
ChartTemplate = env['account.chart.template'].with_company(company)
company_data = ChartTemplate._get_be_asso_reports_res_company(company.chart_template)
ChartTemplate._load_data({
'res.company': company_data,
})