[FIX] Add migration scripts to v12

pull/1832/head
mreficent 2019-05-24 14:23:03 +02:00 committed by Eric Antones
parent cd32a32261
commit acd35dc929
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---Fields in module 'module_auto_update'---
---XML records in module 'module_auto_update'---
NEW ir.actions.server: module_auto_update.ir_module_module_upgrade_changed_checksum
DEL ir.cron: module_auto_update.module_check_upgrades_cron (noupdate)
NEW ir.ui.menu: module_auto_update.menu_ir_module_module_upgrade_changed_checksum

View File

@ -0,0 +1,8 @@
---Fields in module 'module_auto_update'---
---XML records in module 'module_auto_update'---
NEW ir.actions.server: module_auto_update.ir_module_module_upgrade_changed_checksum
NEW ir.ui.menu: module_auto_update.menu_ir_module_module_upgrade_changed_checksum
# NOTHING TO DO
DEL ir.cron: module_auto_update.module_check_upgrades_cron (noupdate)
# DONE: pots-migration: deleted xmlid safely

View File

@ -0,0 +1,12 @@
# Copyright 2019 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env, [
'module_auto_update.module_check_upgrades_cron',
],
)