From a17b2385c4916ba8e219f278dbb54e0186927ac2 Mon Sep 17 00:00:00 2001 From: Atte Isopuro Date: Thu, 11 Jan 2018 12:10:21 +0200 Subject: [PATCH] [FIX] Ensure that the test finds only one bank journal Previously it was possible to find multiple bank journals, which caused singleton errors when the test tried to set values on them. --- account_payment_order/tests/test_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_order/tests/test_payment_order.py b/account_payment_order/tests/test_payment_order.py index bd17212d3..b496f45ea 100644 --- a/account_payment_order/tests/test_payment_order.py +++ b/account_payment_order/tests/test_payment_order.py @@ -49,7 +49,7 @@ class TestPaymentOrder(TransactionCase): payment_order = self.env['account.payment.order'].search([]) bank_journal = self.env['account.journal'].search( - [('type', '=', 'bank')]) + [('type', '=', 'bank')], limit=1) # Set journal to allow cancelling entries bank_journal.update_posted = True