In odoo 8, how to calculate average for a field in tree view?
I tried,
<field name = "average_rating" avg="Average"/>
but no change. How to use it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In odoo 8, how to calculate average for a field in tree view?
I tried,
<field name = "average_rating" avg="Average"/>
but no change. How to use it?
try "sum" instead "avg"
or
You need to define the field group_operator that by default is sum even if you don't specify it. That it's defined directly in the field, like:
count = fields.Integer('Count', group_operator='avg')
I used group_operator in field ,Still no change. Thanks
group_operator work only when you group by on any field in list view.
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Dez. 22
|
14755 | ||
|
1
Nov. 21
|
4858 | ||
|
0
Jan. 21
|
2243 | ||
|
8
Mai 20
|
7751 | ||
|
0
Dez. 23
|
2903 |