From f91f5ed51f41bc8cb8e8ad03c346d3431e1850c9 Mon Sep 17 00:00:00 2001 From: "Pedram (pebr)" Date: Thu, 7 Mar 2024 17:04:00 +0100 Subject: [PATCH] [FIX] point_of_sale: ensure QR code is printed on receipt reprints Before this commit, if a receipt was reprinted, the QR code was not included. This could lead to issues with receipt validation and scanning. opw-3763169 closes odoo/odoo#156948 Signed-off-by: Joseph Caburnay (jcb) --- addons/point_of_sale/static/src/app/store/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/app/store/models.js b/addons/point_of_sale/static/src/app/store/models.js index 01a45cec13a..878a9020eae 100644 --- a/addons/point_of_sale/static/src/app/store/models.js +++ b/addons/point_of_sale/static/src/app/store/models.js @@ -1579,7 +1579,7 @@ export class Order extends PosModel { date: this.receiptDate, pos_qr_code: this.pos.company.point_of_sale_use_ticket_qr_code && - this.finalized && + (this.finalized || ["paid", "done", "invoiced"].includes(this.state)) && qrCodeSrc( `${this.pos.base_url}/pos/ticket/validate?access_token=${this.access_token}` ),