mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
14 lines
372 B
Python
14 lines
372 B
Python
# Copyright 2021 Tecnativa - Víctor Martínez
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
|
|
|
from openupgradelib import openupgrade, openupgrade_90
|
|
|
|
attachment_fields = {
|
|
"agreement": [("signed_contract", None)],
|
|
}
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
openupgrade_90.convert_binary_field_to_attachment(env, attachment_fields)
|