[FIX] account_asset_disposal: env instead of cr in migration script

This commit is contained in:
Pedro M. Baeza
2017-09-01 18:22:20 +02:00
committed by OCA-git-bot
parent ee8fe371c2
commit e2669e893f

View File

@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright Stephane LE CORNEC
# Copyright 2017 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 Tecnativa - Luis M. Ontalba <luis.martinez@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
@@ -18,5 +16,5 @@ def cleanup_modules(cr):
@openupgrade.migrate()
def migrate(cr, version):
cleanup_modules(cr)
def migrate(env, version):
cleanup_modules(env.cr)