[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 2dcd4573a4
commit c8ceb4bf37

View File

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