From 9eba141bba04edc6a05c641fcc79ea52859c29ec Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 5 Jan 2017 16:31:11 +0100 Subject: [PATCH] [FIX] point_of_sale: put order back to xml Was removed at 467ba386 but need it in blackbox for many terms The alternative is to add all the fields in export_for_printing but this patch, even if less modular, is way smaller and safer. --- addons/point_of_sale/static/src/js/screens.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 5f61deb5e0c..f9cf49864d2 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1432,6 +1432,7 @@ var ReceiptScreenWidget = ScreenWidget.extend({ print_xml: function() { var env = { widget: this, + order: this.pos.get_order(), receipt: this.pos.get_order().export_for_printing(), paymentlines: this.pos.get_order().get_paymentlines() };