mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-26 07:32:05 +00:00
15 lines
514 B
Python
15 lines
514 B
Python
# Copyright 2019 Tecnativa - Pedro M. Baeza
|
|
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
|
|
|
|
from openupgradelib import openupgrade
|
|
from openupgradelib import openupgrade_90
|
|
|
|
|
|
@openupgrade.migrate(use_env=True)
|
|
def migrate(env, version):
|
|
column = openupgrade.get_legacy_name('scan')
|
|
if openupgrade.column_exists(env.cr, 'account_banking_mandate', column):
|
|
openupgrade_90.convert_binary_field_to_attachment(
|
|
env, {'account.banking.mandate': [('scan', None)]},
|
|
)
|