diff --git a/account_invoice_report_grouped_by_picking/tests/test_account_invoice_group_picking.py b/account_invoice_report_grouped_by_picking/tests/test_account_invoice_group_picking.py
index 10667af8d..484bd2409 100644
--- a/account_invoice_report_grouped_by_picking/tests/test_account_invoice_group_picking.py
+++ b/account_invoice_report_grouped_by_picking/tests/test_account_invoice_group_picking.py
@@ -125,8 +125,8 @@ def test_account_invoice_group_picking(self):
0
].decode()
# information about sales is printed
- self.assertEqual(tbody.count(self.sale.name), 1)
- self.assertEqual(tbody.count(self.sale2.name), 1)
+ self.assertGreaterEqual(tbody.count(f"{self.sale.name}"), 1)
+ self.assertGreaterEqual(tbody.count(f"{self.sale2.name}"), 1)
# information about pickings is printed
self.assertTrue(self.sale.invoice_ids.picking_ids[:1].name in tbody)
self.assertTrue(self.sale2.invoice_ids.picking_ids[:1].name in tbody)