From fc19fb41aa7b4bdaa17a04880b84d9562becc697 Mon Sep 17 00:00:00 2001 From: Vincent Van Rossem Date: Tue, 2 Jun 2020 18:16:58 +0200 Subject: [PATCH] [ADD] easy_my_coop: openupgrade.rename_xmlids() --- .../migrations/12.0.3.0.1/pre-migration.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 easy_my_coop/migrations/12.0.3.0.1/pre-migration.py 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)