The purpose of this commit is to enable the "group by" functionality of many2many in graph views. Some other views also implement it (e.g. Gannt odoo/enterprise#20192, List and Kanban odoo/odoo#74985), it is therefore a logical step to also support group by many2many in graph views. Previous behavior: It is possible to select a many2many in the group by but it has no effect in the graph. Expected behavior with this commit: It is possible to select a many2many in the group by and it has an impact in the graph. task-2721035 closes odoo/odoo#98009 Related: odoo/enterprise#30272 Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>