From 8c2ff8be58eef7e4ddb3bf0eafd1dee6de336bde Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 4 Jul 2013 16:12:56 +0200 Subject: [PATCH] [FIX] call this.print on end of ReceiptScreenWidget.show instead of explicit window.print print method already existed, probably to allow overriding printing, but it was not actually called bzr revid: xmo@openerp.com-20130704141256-u5n7a4kfmqac8n9z --- addons/point_of_sale/static/src/js/screens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 7a01732c353..d6ae2d4819b 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -820,7 +820,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa click: function() { self.finishOrder(); }, }); - window.print(); + this.print(); }, print: function() { window.print();