From 1f69c41c4a657b70671eb6322f8a6f8beb253331 Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Tue, 24 Jan 2023 12:52:33 +0000 Subject: [PATCH] [FIX] point_of_sale: remove
tag from receipt Current behavior: When paying with a worldline terminal, the receipt is printed with
tags at the end of the receipt. Steps to reproduce: - Setup the worldline terminal and the IoT Box - Open a POS session - Pay with the worldline terminal - The receipt contains the
tags opw-3051722 closes odoo/odoo#111956 X-original-commit: 10eea9aeeb2ffe2bb55adf70632e9467272b00a2 Related: odoo/enterprise#36711 Signed-off-by: Trinh Jacky (trj) Signed-off-by: Engels Robin (roen) --- addons/point_of_sale/static/src/js/models.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 334a2d8880e..297925478c8 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -14,6 +14,7 @@ var QWeb = core.qweb; var _t = core._t; var round_di = utils.round_decimals; var round_pr = utils.round_precision; +const Markup = utils.Markup const { markRaw, reactive } = owl; @@ -2476,7 +2477,7 @@ export class Payment extends PosModel { cid: this.cid, amount: this.get_amount(), name: this.name, - ticket: this.ticket, + ticket: Markup(this.ticket), }; } // If payment status is a non-empty string, then it is an electronic payment.