[IMP] point_of_sale: opening the cashbox only if paying with cash was problematic...
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Wed, 17 Sep 2014 14:14:30 +0000 (16:14 +0200)
committerFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Wed, 17 Sep 2014 14:57:34 +0000 (16:57 +0200)
addons/point_of_sale/static/src/js/screens.js

index 3ca2a81..2ce5adf 100644 (file)
@@ -1264,10 +1264,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
                 }
             }
 
-            if(    this.pos.config.iface_cashdrawer 
-                && this.pos.get('selectedOrder').get('paymentLines').find( function(pl){ 
-                           return pl.cashregister.journal.type === 'cash'; 
-                   })){
+            if (this.pos.config.iface_cashdrawer) {
                     this.pos.proxy.open_cashbox();
             }