From 841a25b23139478029fa82c1d13f548d44cc59f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Mon, 9 Jul 2012 17:56:42 +0200 Subject: [PATCH] [IMP] point_of_sale: removed commented-out code bzr revid: fva@openerp.com-20120709155642-ibnh03xfei6wey7d --- .../static/src/js/pos_screens.js | 64 ------------------- 1 file changed, 64 deletions(-) diff --git a/addons/point_of_sale/static/src/js/pos_screens.js b/addons/point_of_sale/static/src/js/pos_screens.js index 13b0f05858b..59a9e04dff4 100644 --- a/addons/point_of_sale/static/src/js/pos_screens.js +++ b/addons/point_of_sale/static/src/js/pos_screens.js @@ -381,70 +381,6 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa }, }); -/* - module.ScaleProductScreenWidget = module.ScreenWidget.extend({ - template:'ScaleProductSelectionScreenWidget', - start: function(){ - var self = this; - this.product_categories_widget = new module.ProductCategoriesWidget(this,{ - pos:this.pos, - product_type: 'weightable', - }); - this.product_categories_widget.replace($('.placeholder-ProductCategoriesWidget')); - - this.product_list_widget = new module.ProductListWidget(this,{ - show_scale: true, - click_product_action: function(product){ - self.pos.get('selectedOrder').addProduct(product); - self.pos_widget.screen_selector.set_current_screen('products'); - }, - }); - this.product_list_widget.replace($('.placeholder-ProductListWidget')); - }, - show: function(){ - this._super(); - var self = this; - - this.product_categories_widget.reset_category(); - this.pos_widget.order_widget.set_numpad_state(this.pos_widget.numpad.state); - - if(this.pos_widget.screen_selector.get_user_mode() === 'client'){ - this.pos_widget.action_bar.add_new_button({ - label: 'back', - icon: '/point_of_sale/static/src/img/icons/png48/go-previous.png', - click: function(){ - self.pos_widget.screen_selector.set_current_screen('scan'); - } - }); - }else{ - this.pos_widget.action_bar.add_new_button({ - label: 'back', - icon: '/point_of_sale/static/src/img/icons/png48/go-previous.png', - click: function(){ - self.pos_widget.screen_selector.set_current_screen('products'); - } - }); - } - - this.pos.proxy.weighting_start(); - this.last_weight = this.product_list_widget.weight; - this.intervalID = setInterval(function(){ - var weight = self.pos.proxy.weighting_read_kg(); - if(weight != self.last_weight){ - self.product_list_widget.set_weight(weight); - self.last_weight = weight; - } - },500); - }, - close: function(){ - this._super(); - this.pos_widget.order_widget.set_numpad_state(null); - this.pos_widget.payment_screen.set_numpad_state(null); - clearInterval(this.intervalID); - this.pos.proxy.weighting_end(); - }, - });*/ - module.ScaleScreenWidget = module.ScreenWidget.extend({ template:'ScaleScreenWidget', show: function(){