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

11 lines
385 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(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
companies = env['res.company'].search([('account_fiscal_country_id.code', '=', 'EC')])
env['account.chart.template']._l10n_ec_setup_location_accounts(companies)