Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6634 Ansichten

How to group and aggregate in a view?

I have defined a model similar to the following:

   name: char

   group: many2one

   qty: float

   performance: function(float)

I would like to show view displaying group, qty and performance. But the group may be repeated for different records. So, I want to show every group only once, summing qty and performance (which is a function field).

I don´t what to show expandable groups. Just, one line per group.

Avatar
Verwerfen
Beste Antwort

Ratmil,

Inside the search View, add a < filter string="Partner" context="{'group_by':'name of may2one field'}"/>

We've added groupby expand feature on Odoo Apps.

https://www.odoo.com/apps/modules/8.0/web_groupby_expand/

Hope this helps.

Thanks.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 22
2473
0
Juni 19
3494
1
März 15
15683
0
März 15
3209
1
März 15
5460