Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6612 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 22
2462
0
čvn 19
3488
1
bře 15
15662
0
bře 15
3203
1
bře 15
5406