diff --git a/partner_invoicing_mode/tests/common.py b/partner_invoicing_mode/tests/common.py index ce11f2213d3..9e9be2be8c7 100644 --- a/partner_invoicing_mode/tests/common.py +++ b/partner_invoicing_mode/tests/common.py @@ -1,9 +1,10 @@ # Copyright 2020 Camptocamp SA # Copyright 2023 ACSONE SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo.tests.common import TransactionCase -class CommonPartnerInvoicingMode: +class CommonPartnerInvoicingMode(TransactionCase): _invoicing_mode = "standard" @classmethod diff --git a/partner_invoicing_mode/tests/test_invoice_mode.py b/partner_invoicing_mode/tests/test_invoice_mode.py index c628bf2dbc0..fe5daba8549 100644 --- a/partner_invoicing_mode/tests/test_invoice_mode.py +++ b/partner_invoicing_mode/tests/test_invoice_mode.py @@ -7,7 +7,6 @@ from odoo import fields from odoo.tests import Form -from odoo.tests.common import TransactionCase from odoo.addons.queue_job.tests.common import trap_jobs @@ -15,7 +14,7 @@ from .common import CommonPartnerInvoicingMode -class TestInvoiceMode(CommonPartnerInvoicingMode, TransactionCase): +class TestInvoiceMode(CommonPartnerInvoicingMode): @classmethod def setUpClass(cls): super().setUpClass()