mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 16:22:00 +02:00
8 lines
368 B
Python
8 lines
368 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', '=', 'pl')], order="parent_path"):
|
|
Template = env['account.chart.template'].with_company(company)
|
|
Template._load_data({'account.account': Template._get_account_account('pl')})
|