account-financial-reporting/account_tax_balance/migrations/14.0.1.0.0/pre-migration.py
2021-03-12 17:20:48 +01:00

18 lines
375 B
Python

# 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)