From 3f4e30403d94fbcd181472543ef0f7cd52842d9e Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 18 May 2017 10:27:37 -0700 Subject: [PATCH] [FIX] point_of_sale: put pos back in XmlReceipt render context 7836a83b3bde96fb05e8c75fca77a41937a19fa1 was implemented for 9.0 and uses the pos property. It was forward-ported to saas-11 and up. This particular property was removed in saas-11 at 467ba386f45dba425271793b5ad37d3f41a5f009 because it was unused. opw-744222 --- 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 30af41aba5c..2ddd71d4759 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1420,6 +1420,7 @@ var ReceiptScreenWidget = ScreenWidget.extend({ print_xml: function() { var env = { widget: this, + pos: this.pos, receipt: this.pos.get_order().export_for_printing(), paymentlines: this.pos.get_order().get_paymentlines() };