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

12 lines
475 B
Python

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