From 3f28b34b8701a2acd91cf92925273372b2d63b09 Mon Sep 17 00:00:00 2001 From: Frederic van der Essen Date: Wed, 1 Oct 2014 15:13:42 +0200 Subject: [PATCH] [IMP] pos_restaurant: use /web controller instead of /website to load the background image, so as to not depend on the website module --- addons/pos_restaurant/static/src/js/floors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index b48cdd0fad0..b4728af2702 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -331,7 +331,7 @@ function openerp_restaurant_floors(instance,module){ } }, background_image_url: function(floor) { - return '/website/image/restaurant.floor/'+floor.id+'/background_image'; + return '/web/binary/image?model=restaurant.floor&id='+floor.id+'&field=background_image'; }, deselect_tables: function(){ for (var i = 0; i < this.table_widgets.length; i++) {