[OU] web_disable_export_group: Fix when migration happened on 13.0

pull/2925/head
Enric Tobella 2022-11-22 16:37:35 +01:00 committed by prabakaran
parent 5d33b02c6b
commit 2c13b9668f
1 changed files with 11 additions and 9 deletions

View File

@ -3,6 +3,8 @@ from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
# Otherwise, the migration already happened on 13.0
if not env.ref("web_disable_export_group.group_export_xlsx_data", False):
openupgrade.rename_xmlids(
env.cr,
[