bank-payment/account_payment_order/migrations/14.0.1.3.0/pre-migration.py

11 lines
334 B
Python
Raw Normal View History

2021-11-07 03:11:01 +00:00
# Copyright 2021 Akretion France (http://www.akretion.com/)
# @author: 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("UPDATE account_payment_order SET state='uploaded' WHERE state='done'")