From adc76215ef4689e507b0739b8593d3a91ddd51c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Thu, 16 Aug 2012 18:32:51 +0200 Subject: [PATCH] [FIX] point_of_sale: connection is now session. Removed console.log bzr revid: fva@openerp.com-20120816163251-6nds8dmlcz8mz30v --- addons/point_of_sale/static/src/js/pos_db.js | 1 - addons/point_of_sale/static/src/js/pos_widgets.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/pos_db.js b/addons/point_of_sale/static/src/js/pos_db.js index 41957de4bbe..77f7307b48f 100644 --- a/addons/point_of_sale/static/src/js/pos_db.js +++ b/addons/point_of_sale/static/src/js/pos_db.js @@ -155,7 +155,6 @@ function openerp_pos_db(instance, module){ } stored_products[product.id] = product; } - console.log(this.category_search_string); this.save('products',stored_products); this.save('categories',stored_categories); }, diff --git a/addons/point_of_sale/static/src/js/pos_widgets.js b/addons/point_of_sale/static/src/js/pos_widgets.js index 6e35bee7bb1..4449978cf6c 100644 --- a/addons/point_of_sale/static/src/js/pos_widgets.js +++ b/addons/point_of_sale/static/src/js/pos_widgets.js @@ -279,7 +279,7 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa }, // returns the url of the product thumbnail get_image_url: function() { - return '/web/binary/image?session_id='+instance.connection.session_id+'&model=product.product&field=image&id='+this.model.get('id'); + return '/web/binary/image?session_id='+instance.session.session_id+'&model=product.product&field=image&id='+this.model.get('id'); }, renderElement: function() { this._super();