[FIX] point_of_sale: remove <br/> tag from receipt
Current behavior: When paying with a worldline terminal, the receipt is printed with <br/> 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 <br/> tags opw-3051722 closes odoo/odoo#111956 X-original-commit: 10eea9aeeb2ffe2bb55adf70632e9467272b00a2 Related: odoo/enterprise#36711 Signed-off-by: Trinh Jacky (trj) <trj@odoo.com> Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user