Files
odoo_source/odoo/addons/test_read_group/ir.model.access.csv
T
Francois Volral 4a40db2097 [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
2018-08-10 17:21:17 +02:00

667 B

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_test_read_group_on_dateaccess_test_read_group_on_datemodel_test_read_group_on_date1000
3access_test_read_group_aggregate_booleanaccess_test_read_group_aggregate_booleanmodel_test_read_group_aggregate_boolean1000
4access_test_read_group_aggregateaccess_test_read_group_aggregatemodel_test_read_group_aggregate1000
5access_test_read_group_on_selectionaccess_test_read_group_on_selectionmodel_test_read_group_on_selection1000
6access_test_read_group_fill_temporalaccess_test_read_group_fill_temporalmodel_test_read_group_fill_temporal1000