diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-05-10 17:10:41 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-05-20 11:16:29 +0200 |
| commit | ae1c0e8b233f0e8e92f3c39afb398a8e9ca26022 (patch) | |
| tree | 4c88c4dc2ffb68e1a6f8bfc3f26111423e01a13c /addons/website/data/web_planner_data.xml | |
| parent | 7f9942c1a42e35745c1cc39f621daed4ecd0c8c7 (diff) | |
[FIX] calendar: fetching images of negative ids
The mimetime fetching in /web/image/... may fail if:
- calendar is installed
- `id` is a string (using ?id=42 in the URI)
- `id` is a negative number (company partners on odoo.com)
The `search` override of `ir.attachment` in calendar detects if a number is a
virtual ID when it contains a '-' and is a string.
While it is not optimal to allow both int and str format for paramter `id`, make
the verification of virtual ID in calendar more strict to only match the format
`<real>-<virtual>` and not `-<real>`
Diffstat (limited to 'addons/website/data/web_planner_data.xml')
0 files changed, 0 insertions, 0 deletions
