From e9bcaad09e98dba9dd12ae01c25246798a07a87f Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 24 Mar 2016 18:02:31 +0100 Subject: [PATCH] [FIX] website: partial revert of 6207644 Before this revision, it was possible to use the `/website/image` controller using kwargs only e.g. `/website/image?field=datas&model=ir.attachment&id=718207` After, it's no longer possible. It was assumed `/website/image` without any argument in the route itself (``, ``, ...) could simply never be called, but this is not the case. We therefore restore it by retro-compability purposes. --- addons/website/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 0443ac03e68..65b891a0a11 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -433,6 +433,7 @@ class Website(openerp.addons.web.controllers.main.Home): return request.registry['website']._image_placeholder(response) @http.route([ + '/website/image', '/website/image/', '/website/image//x', '/website/image//',