mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[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:
committed by
Pedro M. Baeza
parent
2dcd4573a4
commit
c8ceb4bf37
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user