From a108a3fa910269cb6b783c707fb8c7faf828ab69 Mon Sep 17 00:00:00 2001 From: chaule97 Date: Fri, 8 Nov 2024 09:47:54 +0700 Subject: [PATCH] [UPD] Update testcase --- partner_invoicing_mode/tests/common.py | 3 ++- partner_invoicing_mode/tests/test_invoice_mode.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()