mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_reconcile_payment_order: Adapt tests to upstream changes
Due to OCA/bank-payment@7ffe049ad3
This commit is contained in:
committed by
CarlosRoca13
parent
847ca11aa0
commit
0773635b5b
@@ -11,9 +11,11 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase):
|
|||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
cls.widget_obj = cls.env['account.reconciliation.widget']
|
cls.widget_obj = cls.env['account.reconciliation.widget']
|
||||||
cls.bank_journal = cls.env['account.journal'].search(
|
cls.bank_journal = cls.env['account.journal'].search(
|
||||||
[('type', '=', 'bank')], limit=1)
|
[('type', '=', 'bank'),
|
||||||
|
'|', ('company_id', '=', cls.env.user.company_id.id),
|
||||||
|
('company_id', '=', False)], limit=1)
|
||||||
# Create second invoice for being sure it handles the payment order
|
# Create second invoice for being sure it handles the payment order
|
||||||
cls.invoice2 = cls._create_customer_invoice(cls)
|
cls.invoice2 = cls._create_customer_invoice()
|
||||||
cls.partner2 = cls.env['res.partner'].create({
|
cls.partner2 = cls.env['res.partner'].create({
|
||||||
'name': 'Test partner 2',
|
'name': 'Test partner 2',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user