[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 86bd1a2525
This commit is contained in:
Carlos Lopez
2022-01-16 13:28:41 -05:00
committed by Pedro M. Baeza
parent 60a7abac56
commit ab739d0e62

View File

@@ -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