You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
478 B

# -*- coding: utf-8 -*-
# Copyright 2017 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
_field_renames = [
('mass.object', 'mass_object', 'ref_ir_act_window',
'ref_ir_act_window_id'),
('mass.object', 'mass_object', 'ref_ir_value', 'ref_ir_value_id'),
]
@openupgrade.migrate(use_env=True)
def migrate(env, version):
openupgrade.rename_fields(env, _field_renames)