From 43cd557bde2ecb0e66a8d6faf09a3dfbb800809e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 27 Jun 2019 20:03:42 +0200 Subject: [PATCH] [IMP] account_financial_report_qweb: Don't fail with installed l10n The number of computed accounts can be greater in certain databases with l10n modules. --- account_financial_report_qweb/tests/abstract_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_financial_report_qweb/tests/abstract_test.py b/account_financial_report_qweb/tests/abstract_test.py index bef6e01f..30607f77 100644 --- a/account_financial_report_qweb/tests/abstract_test.py +++ b/account_financial_report_qweb/tests/abstract_test.py @@ -269,8 +269,8 @@ class AbstractTest(common.TransactionCase): report2 = self.model.create(current_filter) report2.compute_data_for_report() - self.assertEqual(len(report2.account_ids), 1) - self.assertEqual(report2.account_ids.name, + self.assertGreaterEqual(len(report2.account_ids), 1) + self.assertEqual(report2.account_ids[0].name, report.account_ids[0].name) if self._partner_test_is_possible(filters):