odoo18/addons/l10n_co/migrations/1.0/end-migrate_update_taxes.py

9 lines
351 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, SUPERUSER_ID
def migrate(cr, version):
env = api.Environment(cr, SUPERUSER_ID, {})
for company in env['res.company'].search([('chart_template', '=', 'co')], order="parent_path"):
env['account.chart.template'].try_loading('co', company)