Merge pull request #327 from hbrunn/9.0-account_payment_mode-migrate_in_init_hook

[ADD] after openupgrade's rename, we also need to call our hook in the migration script
This commit is contained in:
Alexis de Lattre
2017-03-03 14:53:10 +01:00
committed by GitHub

View File

@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.addons.account_payment_mode.hooks import migrate_from_8
def migrate(cr, version=None):
# also support cases where openupgrade renamed the old module
migrate_from_8(cr)