From a0ebff44e599215257e9e8e7022d24c9c7f3115f Mon Sep 17 00:00:00 2001 From: David Date: Fri, 22 Dec 2023 13:23:21 +0100 Subject: [PATCH] [FIX] account_invoice_report_grouped_by_picking: test compatibility The module `sale_order_line_sequence` adds a column to the invoice report with a sequence that could contain the name of the sales order when the lines belong to different orders. Let's make sure that we count only our row content. TT46702 --- .../tests/test_account_invoice_group_picking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9d6ed5681..34c6a61f1 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 @@ -101,8 +101,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.assertEqual(tbody.count(f"{self.sale.name}"), 1) + self.assertEqual(tbody.count(f"{self.sale.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)