[FIX] point_of_sale: removed console.log + fixed paid status update due to missing...
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Thu, 7 Aug 2014 15:36:24 +0000 (17:36 +0200)
committerFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Thu, 7 Aug 2014 15:36:24 +0000 (17:36 +0200)
addons/point_of_sale/static/src/js/screens.js

index 0e6d568..3132cb5 100644 (file)
@@ -1039,6 +1039,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
             this.pos.get_order().clean_empty_paymentlines();
             this.reset_input();
             this.render_paymentlines();
+            this.order_changes();
             window.document.body.addEventListener('keydown',this.keyboard_handler);
             this._super();
         },
@@ -1061,8 +1062,8 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
         // called when the order is changed, used to show if
         // the order is paid or not
         order_changes: function(){
+            var self = this;
             var order = this.pos.get_order();
-            console.log('change!');
             if (order.isPaid()) {
                 self.$('.next').addClass('highlight');
             }else{