From da4ff7bd74fbce58344ab7fe97f7b4a628170e5c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 11 Jan 2018 12:38:06 +0100 Subject: [PATCH] [ADD] migration script to install report_py3o_fusion_server on upgrades --- report_py3o/migrations/10.0.2.0.0/pre-migration.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 report_py3o/migrations/10.0.2.0.0/pre-migration.py diff --git a/report_py3o/migrations/10.0.2.0.0/pre-migration.py b/report_py3o/migrations/10.0.2.0.0/pre-migration.py new file mode 100644 index 00000000..e697ceec --- /dev/null +++ b/report_py3o/migrations/10.0.2.0.0/pre-migration.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# © 2018 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + + +def migrate(cr, version=None): + # when migrating from a pre-split version of the module, pull the fusion + # server module too to have no loss of features + cr.execute( + "update ir_module_module set state='to install' " + "where name='report_py3o_fusion_server' and state='uninstalled'" + )