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();