mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #437 from avoinsystems/ensure-single-bank-in-test
[FIX] Ensure that the test finds only one bank journal
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