From e0e9f59f7f56ebbb412a0c25752a0f8c41c65b13 Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Fri, 10 Oct 2014 16:34:55 +0200 Subject: [PATCH] [FIX] pos_restaurant: disable barcodes in the floor map --- addons/pos_restaurant/static/src/js/floors.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index bb7a59a240b..51491738b04 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -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];