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

10 lines
361 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from odoo import api, SUPERUSER_ID
def post_init_hook(env):
companies = env['res.company'].search([('account_fiscal_country_id.code', '=', 'EC'), ('chart_template', '!=', False)])
env['account.chart.template']._l10n_ec_setup_location_accounts(companies)