From 526c38cdb145143407cc0e5504574e72f7e720a0 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 25 May 2016 15:03:29 +0200 Subject: [PATCH] [FIX] point_of_sale: set callbacks for weight and price barcodes c8732bea1e8471b90ac0c118b212a2d6ae84180a did not take into account that we don't have specific callbacks for weight or price type barcodes. Those where handled by the product callback. opw-678556 --- addons/point_of_sale/static/src/js/screens.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 06977a3285c..f90d861b67a 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -131,6 +131,8 @@ var ScreenWidget = PosBaseWidget.extend({ this.pos.barcode_reader.set_action_callback({ 'cashier': _.bind(self.barcode_cashier_action, self), 'product': _.bind(self.barcode_product_action, self), + 'weight': _.bind(self.barcode_product_action, self), + 'price': _.bind(self.barcode_product_action, self), 'client' : _.bind(self.barcode_client_action, self), 'discount': _.bind(self.barcode_discount_action, self), 'error' : _.bind(self.barcode_error_action, self),