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). - + + +