account-financial-reporting/account_tax_balance/migrations/14.0.1.0.0/pre-migration.py

18 lines
375 B
Python
Raw Normal View History

2021-03-12 16:20:48 +00:00
# Copyright 2020 Ozono Multimedia S.L.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
field_renames = [
(
"account.move",
"account_move",
"move_type",
"financial_type",
),
]
@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_fields(env, field_renames)