[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 (`<xmlid>`, `<field>`, ...)
could simply never be called,
but this is not the case.

We therefore restore it by retro-compability purposes.
This commit is contained in:
Denis Ledoux
2016-03-24 18:05:31 +01:00
parent 21337b43a8
commit e9bcaad09e
+1
View File
@@ -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/<xmlid>',
'/website/image/<xmlid>/<int:max_width>x<int:max_height>',
'/website/image/<xmlid>/<field>',