diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-09-20 13:48:47 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-09-22 10:21:10 +0200 |
| commit | be8bbc2396a494a8f22a9d1671891536a7f92abd (patch) | |
| tree | d0bf67dde599265c0ac21b078004cd51025b48b6 /addons/web/static/src/js/framework/utils.js | |
| parent | ab06013e30d2a8ca561874c6141b2a52dc1843b1 (diff) | |
[FIX] base: traceback in `read_group`
An issue originally occurs in the Event module.
- Go to Events >> Reports >> Events
- Add a "Group By" in the search view: "Event Month"
- A mighty traceback pops up
This is because the rows and the columns are grouped by the same field
(`event_date:month`).
In method `_read_group_format_result`, a group_by of type "date" or
"datetime" is replaced by a "(range_start/range_end, label)" tuple. The
first element of the loop on `annotated_groupbys` is handled correctly,
but the next identical element will crash on `value + gb['interval']`,
since `value` is now a tuple and not a date/datetime anymore.
opw-686242
Diffstat (limited to 'addons/web/static/src/js/framework/utils.js')
0 files changed, 0 insertions, 0 deletions
