summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2018-07-18 13:03:13 +0200
committerSébastien Theys <seb@odoo.com>2018-07-18 13:39:33 +0200
commitda150e591dd4e08eae12398c6f4502bc17042fba (patch)
treeafa9885f19c381fd9722432be367f9e9cd8d7826
parentae87467d8c0f048c6d77a0494064acf4bba0e4e6 (diff)
[FIX] account: fix the aged report test
The partner is present in the amls but as an empty array, so we need to test it this way. Fixed with the help of @smetl (las)
-rw-r--r--addons/account/tests/test_reconciliation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/tests/test_reconciliation.py b/addons/account/tests/test_reconciliation.py
index b95875eb954..687ae810e35 100644
--- a/addons/account/tests/test_reconciliation.py
+++ b/addons/account/tests/test_reconciliation.py
@@ -799,7 +799,7 @@ class TestReconciliation(AccountingTestCase):
partner_lines = [line for line in report_lines if line['partner_id'] == partner.id]
self.assertEqual(partner_lines, [], 'The aged receivable shouldn\'t have lines at this point')
- self.assertFalse(partner.id in amls, 'The aged receivable should not have amls either')
+ self.assertFalse(amls.get(partner.id), 'The aged receivable should not have amls either')
# Case 2: The invoice and payment are not reconciled: we should have one line on the report
# and 2 amls