summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorFrancois Volral <fvo@odoo.com>2018-07-09 14:46:45 +0200
committerFrancois Volral <fvo@odoo.com>2018-08-10 17:21:17 +0200
commit4a40db209706a5adae879a2b4349f873b336ccb9 (patch)
tree0e39964f2d37412b78eeee8dd56da3b790dc2ed1 /addons/web/static/src/js
parent32e232149f5622ac9e14734b92db2eb23330bbd8 (diff)
[IMP] orm: add support to fill temporal holes (read_group)
This commit add an extra parameter 'fill_temporal' to read_group which allows the orm to add missing groups for date intervals. This is useful for charts. Suppose that we are in a use case where data are grouped by a date fields (typically months but it could be another interval) and displayed in a Bar Chart or a Line Char. Let's says a request has to group records by month for August, September and ...December. If we don't changed anything, we would get a Bar Chart looking like this : ___ ___ | | | | | | | | ___ | | | || || | |___||___||___| Aug Sep D December follows directly after September, it can be unintuitive for the user, so we change that. We add some fake records for each missing months between the earliest and the lastest date of the result ___ ___ | | | | | | | | ___ | | | || | | | |___||___| ___ ___ |___| Aug Sep Oct Nov Dec This commit is part of task #1835644
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions