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

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