From cc382bab267259b7608df86684831877b9f4df8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Mon, 11 May 2026 10:00:34 +0200 Subject: [PATCH] [FIX] pos_margin: Remove margin data on the ticket TT62342 --- pos_margin/static/src/js/models.esm.js | 9 +++++++++ pos_margin/static/src/xml/pos_margin.xml | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pos_margin/static/src/js/models.esm.js b/pos_margin/static/src/js/models.esm.js index 508db8465a..6d7daeefed 100644 --- a/pos_margin/static/src/js/models.esm.js +++ b/pos_margin/static/src/js/models.esm.js @@ -26,6 +26,15 @@ patch(PosOrder.prototype, { get_margin_rate_str() { return roundCurrency(this.get_margin_rate(), this.currency) + "%"; }, + + export_for_printing(baseUrl, headerData) { + const result = super.export_for_printing(baseUrl, headerData); + result.orderlines = result.orderlines.map((line) => ({ + ...line, + ifaceDisplayMargin: false, + })); + return result; + }, }); // ///////////////////////////// diff --git a/pos_margin/static/src/xml/pos_margin.xml b/pos_margin/static/src/xml/pos_margin.xml index 8f560b8546..83f86b4799 100644 --- a/pos_margin/static/src/xml/pos_margin.xml +++ b/pos_margin/static/src/xml/pos_margin.xml @@ -28,7 +28,9 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - + + +