[ADD] migration script to install report_py3o_fusion_server on upgrades

pull/744/head
Holger Brunn 2018-01-11 12:38:06 +01:00 committed by Alexandre D. Díaz
parent f07e3a07d3
commit e11d5ad09d
1 changed files with 12 additions and 0 deletions

View File

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