Files
odoo_source/odoo/addons/test_read_group/ir.model.access.csv
T
Adrian TorresandRaphael Collet b4487e8ea4 [IMP] core: allow grouping by m2m fields in read_group
With this commit, it is now possible to group the records of a model by
a Many2many field of said model.

The result of a read_group grouped by a m2m will return as many entries
or "groups" as there are different records in the comodel that are
linked to the model through the m2m, plus a null/false group, for records
of the model that have no linked records of the comodel or for records
of the comodel for which the current user has no read access to due to
ir.rules.

For a more illustrated explanation, the tests should cover all cases in
detail.

Note that this commit only introduces this change at the ORM level, the
frontend does not yet handle grouping by m2m fields but it is planned
in the near future.

Task-2428971

closes odoo/odoo#68958

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Co-authored-by: Raphael Collet <rco@odoo.com>
2021-04-20 12:08:35 +00:00

1.0 KiB

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
7access_test_read_group_orderaccess_test_read_group_ordermodel_test_read_group_order1000
8access_test_read_group_order_lineaccess_test_read_group_order_linemodel_test_read_group_order_line1000
9access_test_read_group_useraccess_test_read_group_usermodel_test_read_group_user1000
10access_test_read_group_taskaccess_test_read_group_taskmodel_test_read_group_task1000