Debian Codegraph @

addons/l10n_br/migrations/1.1/end-migrate-update_taxes.py

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