diff --git a/easy_my_coop/migrations/12.0.3.0.1/pre-migration.py b/easy_my_coop/migrations/12.0.3.0.1/pre-migration.py new file mode 100644 index 0000000..15d186a --- /dev/null +++ b/easy_my_coop/migrations/12.0.3.0.1/pre-migration.py @@ -0,0 +1,14 @@ +from openupgradelib import openupgrade + +xmlid_renames = [ + ('easy_my_coop.group_energiris_user', + 'easy_my_coop.group_easy_my_coop_user'), + ('easy_my_coop.group_energiris_manager', + 'easy_my_coop.group_easy_my_coop_manager'), +] + + +@openupgrade.migrate() +def migrate(env, version): + cr = env.cr + openupgrade.rename_xmlids(cr, xmlid_renames)