addons/l10n_ec_stock/__init__.py
raw| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | |
| 3 | from . import models |
| 4 | from odoo import api, SUPERUSER_ID |
| 5 | |
| 6 | |
| 7 | def post_init_hook(env): |
| 8 | companies = env['res.company'].search([('account_fiscal_country_id.code', '=', 'EC'), ('chart_template', '!=', False)]) |
| 9 | env['account.chart.template']._l10n_ec_setup_location_accounts(companies) |