Browse Source

[ADD] easy_my_coop: openupgrade.rename_xmlids()

pull/99/head
Vincent Van Rossem 5 years ago
committed by Rémy Taymans
parent
commit
fc19fb41aa
  1. 14
      easy_my_coop/migrations/12.0.3.0.1/pre-migration.py

14
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)
Loading…
Cancel
Save