From ad84d1432d7fd3e8c34948e8cbf80030005c7e03 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 23 Apr 2020 18:44:45 +0200 Subject: [PATCH] [FIX] account_reconcile_payment_order: Adapt tests to upstream changes Due to OCA/bank-payment@7ffe049ad3095f61835e30fb369c975c24341413 --- .../tests/test_account_reconcile_payment_order.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_reconcile_payment_order/tests/test_account_reconcile_payment_order.py b/account_reconcile_payment_order/tests/test_account_reconcile_payment_order.py index 87591585..220190ff 100644 --- a/account_reconcile_payment_order/tests/test_account_reconcile_payment_order.py +++ b/account_reconcile_payment_order/tests/test_account_reconcile_payment_order.py @@ -11,9 +11,11 @@ class TestAccountReconcilePaymentOrder(TestPaymentOrderInboundBase): super().setUpClass() cls.widget_obj = cls.env['account.reconciliation.widget'] 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 - cls.invoice2 = cls._create_customer_invoice(cls) + cls.invoice2 = cls._create_customer_invoice() cls.partner2 = cls.env['res.partner'].create({ 'name': 'Test partner 2', })