[FIX] point_of_sale: avoid auto reprinting receipt when switching between orders
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Tue, 30 Sep 2014 18:32:39 +0000 (20:32 +0200)
committerFrédéric van der Essen <fvdessen@gmail.com>
Tue, 25 Nov 2014 18:14:39 +0000 (19:14 +0100)
Conflicts:
addons/point_of_sale/static/src/js/screens.js

addons/point_of_sale/static/src/js/screens.js

index f879db4..813af8d 100644 (file)
@@ -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() {