bank-payment/account_payment_mode/migrations/11.0.1.0.1/pre-migration.py

10 lines
282 B
Python
Raw Normal View History

2021-03-23 19:28:51 +00:00
# Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
def migrate(cr, version):
if not version:
return
cr.execute('ALTER TABLE res_partner_bank DROP COLUMN IF EXISTS acc_type')