# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openupgradelib import openupgrade column_renames = { 'account_banking_mandate': [ ('scan', None), ], } @openupgrade.migrate() def migrate(env, version): if openupgrade.column_exists(env.cr, 'account_banking_mandate', 'scan'): openupgrade.rename_columns(env.cr, column_renames)