2
0
account-financial-tools/account_move_line_sale_info/migrations/13.0.1.0.0/pre-migration.py
2023-08-03 16:26:06 +02:00

13 lines
365 B
Python

# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
_field_renames = [
("account.move.line", "account_move_line", "sale_id", "sale_order_id",),
]
@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_fields(env, _field_renames)