summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-05-18 10:27:37 -0700
committerJoren Van Onder <jov@odoo.com>2017-05-18 10:27:37 -0700
commit3f4e30403d94fbcd181472543ef0f7cd52842d9e (patch)
treefb2939e0b8de29936d15955944d52b29dbe0ea73 /addons
parent817ec3e8147267808416c0c5994aa97bfc2b6dd9 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/static/src/js/screens.js1
1 files changed, 1 insertions, 0 deletions
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()
};