diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-24 18:02:31 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-24 18:05:31 +0100 |
| commit | e9bcaad09e98dba9dd12ae01c25246798a07a87f (patch) | |
| tree | 9f8d303690d4e8ed859b693b930cfbb3b71049f8 | |
| parent | 21337b43a82a895be31e4083cdb5b48de42d7d33 (diff) | |
[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.
| -rw-r--r-- | addons/website/controllers/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
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/<xmlid>', '/website/image/<xmlid>/<int:max_width>x<int:max_height>', '/website/image/<xmlid>/<field>', |
