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:
Pedro M. Baeza
2018-02-27 14:30:14 +01:00
committed by GitHub

View File

@@ -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