Skip to content

Commit

Permalink
[FIX] account_invoice_report_grouped_by_picking: test compatibility
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chienandalu committed Dec 22, 2023
1 parent 8054df0 commit a0ebff4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"<span>{self.sale.name}</span>"), 1)
self.assertEqual(tbody.count(f"<span>{self.sale.name}</span>"), 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)
Expand Down

0 comments on commit a0ebff4

Please sign in to comment.