mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 06:02:04 +02:00
7 lines
321 B
Python
7 lines
321 B
Python
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', 'like', r'es\_%')], order="parent_path"):
|
|
env['account.chart.template'].try_loading(company.chart_template, company, force_create=False)
|