Browse Source

[ADD] migration script to install report_py3o_fusion_server on upgrades

14.0-report-py3o-pr-506
Holger Brunn 7 years ago
committed by default
parent
commit
fb0881c1d5
  1. 12
      report_py3o/migrations/10.0.2.0.0/pre-migration.py

12
report_py3o/migrations/10.0.2.0.0/pre-migration.py

@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2018 Therp BV <http://therp.nl>
# 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'"
)
Loading…
Cancel
Save