[FIX] pos_daily_sales_reports: correct invoice ref

This commit corrects the invoice reference showed in the daily reports
of the PoS.

closes odoo/odoo#127920

X-original-commit: 779f2abbb5b36a05add2c1c0fbf087c0a01cf4b3
Signed-off-by: Robin Heinz (rhe) <rhe@odoo.com>
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
Adrien Guilliams (adgu)
2023-07-13 03:57:43 +02:00
parent bac8c7a5d6
commit 4fe7ae52a1
+1 -1
View File
@@ -2040,7 +2040,7 @@ class PosSession(models.Model):
for order in self.order_ids.filtered(lambda o: o.is_invoiced):
invoice = {
'total': order.account_move.amount_total,
'name': order.account_move.highest_name,
'name': order.account_move.name,
'order_ref': order.pos_reference,
}
invoice_list.append(invoice)