From 1f11314e2ef5fe917dd8b0f12e5107f2b36511b6 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 30 Dec 2016 18:20:31 +0100 Subject: [PATCH] [ADD] after openupgrade's rename, we also need to call our hook in the migration script --- .../migrations/9.0.1.0.0/pre-migration.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 account_payment_mode/migrations/9.0.1.0.0/pre-migration.py diff --git a/account_payment_mode/migrations/9.0.1.0.0/pre-migration.py b/account_payment_mode/migrations/9.0.1.0.0/pre-migration.py new file mode 100644 index 000000000..d63e5d200 --- /dev/null +++ b/account_payment_mode/migrations/9.0.1.0.0/pre-migration.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +# © 2016 Therp BV +# 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)