bank-payment/account_banking_mandate/migrations/11.0.2.0.0/pre-migration.py
2021-03-23 20:28:51 +01:00

17 lines
427 B
Python

# 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)