[MIG] account_tax_balance: Migration to 14.0
This commit is contained in:
committed by
Borruso
parent
54339092f3
commit
9fbb756b87
17
account_tax_balance/migrations/14.0.1.0.0/pre-migration.py
Normal file
17
account_tax_balance/migrations/14.0.1.0.0/pre-migration.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user