From c8ceb4bf3723f37efbdd852202efa61b17b6dfbb 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 | 4 +++- 1 file changed, 3 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 7ab83c26d..e944577ff 100644 --- a/account_payment_order/tests/test_payment_order_outbound.py +++ b/account_payment_order/tests/test_payment_order_outbound.py @@ -10,7 +10,7 @@ from odoo.exceptions import UserError, ValidationError from odoo.addons.account.tests.common import AccountTestInvoicingCommon -class TestPaymentOrderOutbound(AccountTestInvoicingCommon): +class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) @@ -85,6 +85,8 @@ class TestPaymentOrderOutbound(AccountTestInvoicingCommon): return invoice + +class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase): def test_creation_due_date(self): self.mode.variable_journal_ids = self.bank_journal self.mode.group_lines = False