mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-23 22:22:05 +00:00
17 lines
427 B
Python
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)
|