From ab739d0e624723b61c17cf7ff3983bf2010b70e9 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Sun, 16 Jan 2022 13:28:41 -0500 Subject: [PATCH] [IMP] account_payment_order: outbound inheritable + SavepointCase This commit split the tests for outbound payment in a base inheritable class that can be reused in other dependant modules, and the test of this module. similar to https://github.com/OCA/bank-payment/commit/86bd1a2525d45f4a2eb9146b4a0ef679068d3649 --- account_payment_order/tests/test_payment_order_outbound.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_payment_order/tests/test_payment_order_outbound.py b/account_payment_order/tests/test_payment_order_outbound.py index ad867f249..6b60bc611 100644 --- a/account_payment_order/tests/test_payment_order_outbound.py +++ b/account_payment_order/tests/test_payment_order_outbound.py @@ -12,7 +12,7 @@ from odoo.addons.account.tests.common import AccountTestInvoicingCommon @tagged("-at_install", "post_install") -class TestPaymentOrderOutbound(AccountTestInvoicingCommon): +class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) @@ -87,6 +87,9 @@ class TestPaymentOrderOutbound(AccountTestInvoicingCommon): return invoice + +@tagged("-at_install", "post_install") +class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase): def test_creation_due_date(self): self.mode.variable_journal_ids = self.bank_journal self.mode.group_lines = False