Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5384 Vizualizări

How can I display the average of the speed field, instead of the sum?

XML TREE

        <field name="arch" type="xml">
            <tree string="Models">
                <field name="deviceid" />
                <field name="devicetime"/>
                <field name="speed"/>
                <field name="address" />
                <field name="event" />
                <field name="leido" />
            </tree>
        </field>


XML SEARCH

        <field name="arch" type="xml">
            <search string="Vehicles costs" >
                <group expand="1" string="Group By">
                    <filter name="groupby_devieid" separator="1" context="{'group_by' : 'deviceid'}" string="Vehicle"/>
                </group>
            </search>
        </field>

Imagine profil
Abandonează
Autor Cel mai bun răspuns

All records

Car 1
50
Car 1
60
Car 2
65


Grouped records

Car 1
55 (avg 50,60)  I need
Car 2
65




Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try like thi by giving avg=""

<field name="probability" avg="Avg. of Probability"/>

See:-  https://www.youtube.com/watch?v=hMQaPyzIP6E

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 24
1738
0
mai 24
1735
1
apr. 22
9370
2
oct. 21
8658
1
iul. 21
22581