Debian Codegraph @

addons/l10n_lu/migrations/2.2/end-migrate_update_taxes.py

raw
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2 from odoo import api, SUPERUSER_ID
3
4 def migrate(cr, version):
5 env = api.Environment(cr, SUPERUSER_ID, {})
6 for company in env['res.company'].search([('chart_template', '=', 'lu')], order="parent_path"):
7 env['account.chart.template'].try_loading('lu', company, force_create=False)