[FIX] pos_restaurant: disable barcodes in the floor map
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Fri, 10 Oct 2014 14:34:55 +0000 (16:34 +0200)
committerFrédéric van der Essen <fvdessen@gmail.com>
Wed, 26 Nov 2014 10:26:59 +0000 (11:26 +0100)
addons/pos_restaurant/static/src/js/floors.js

index bb7a59a..5149173 100644 (file)
@@ -300,6 +300,12 @@ function openerp_restaurant_floors(instance,module){
     module.FloorScreenWidget = module.ScreenWidget.extend({
         template: 'FloorScreenWidget',
         show_leftpane: false,
+
+        // Ignore products, discounts, and client barcodes
+        barcode_product_action: function(code){},
+        barcode_discount_action: function(code){},
+        barcode_client_action: function(code){},
+
         init: function(parent, options) {
             this._super(parent, options);
             this.floor = this.pos.floors[0];