From 643b6cfc36abd4fa51eb698a2c977200dd3754ca Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Tue, 14 Aug 2012 00:30:32 +0200 Subject: [PATCH] [FIX] image urls and NETWORK section bzr revid: al@openerp.com-20120813223032-t6nouzthq43xr841 --- addons/point_of_sale/controllers/main.py | 1 + addons/point_of_sale/static/src/js/pos_widgets.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/controllers/main.py b/addons/point_of_sale/controllers/main.py index 7fb417e92c2..a5c3c59ee80 100644 --- a/addons/point_of_sale/controllers/main.py +++ b/addons/point_of_sale/controllers/main.py @@ -36,6 +36,7 @@ class PointOfSaleController(openerpweb.Controller): product_id = p['id'] url = "/web/binary/image?session_id=%s&model=product.product&field=image&id=%s" % (session_id, product_id) ml.append(url) + ml += ["NETWORK:","*"] m = "\n".join(ml) return m 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 329bb05aca8..1f6b29439ab 100644 --- a/addons/point_of_sale/static/src/js/pos_widgets.js +++ b/addons/point_of_sale/static/src/js/pos_widgets.js @@ -242,7 +242,7 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa this.renderElement(); }, get_image_url: function() { - return 'web/binary/image?session_id='+instance.connection.session_id+'&model=product.product&field=image&id='+this.model.get('id')+'&cache=1800'; + return '/web/binary/image?session_id='+instance.connection.session_id+'&model=product.product&field=image&id='+this.model.get('id'); }, renderElement: function() { this._super();