[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user