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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
| 
            
                Selecting items for one2many relation
            
            
                    Rozwiązane
            
         |  | 2 gru 22  | 15506 | |
|  | 1 lis 21  | 5575 | ||
|  | 0 sty 21  | 2848 | ||
|  | 8 maj 20  | 8538 | ||
|  | 0 gru 23  | 3447 |