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'" + )