# Copyright 2025 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade, openupgrade_180


@openupgrade.migrate()
def migrate(env, version):
    openupgrade_180.convert_company_dependent(
        env, "res.partner", "customer_invoice_transmit_method_id"
    )
    openupgrade_180.convert_company_dependent(
        env, "res.partner", "supplier_invoice_transmit_method_id"
    )
