From b487e8da61c7a782edaef1730aa8989b6c736d9a Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Tue, 30 Sep 2014 20:32:39 +0200 Subject: [PATCH] [FIX] point_of_sale: avoid auto reprinting receipt when switching between orders Conflicts: addons/point_of_sale/static/src/js/screens.js --- addons/point_of_sale/static/src/js/screens.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index f879db43227..813af8d6103 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -955,7 +955,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa this.refresh(); - if (!this.pos.get('selectedOrder')._printed) { + if (!this.pos.get_order()._printed) { this.print(); } @@ -989,7 +989,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa } }, print: function() { - this.pos.get('selectedOrder')._printed = true; + this.pos.get_order()._printed = true; window.print(); }, finish_order: function() {