mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user