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
6446 Zobrazení

I have a model that contains create_date, field_1 and field_2 which are of float type, How can I display "create_date" in x-axis and the two other fields (field_1 and field_2) in y-axis in the same graph view ?

Avatar
Zrušit
Nejlepší odpověď

you can try this.

<record model="ir.ui.view" id="view_test_graph">

    <field name="name">Test</field>

    <field name="model">Model.name</field>

    <field name="arch" type="xml">

     <graph string="Data" type="bar">

        <field name="create_date" type="row"/>

        <field name="field_1" type="measure"/>

        &lt;field name="field_2" type="measure"/>

    </graph>

</field>

</record>

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 15
89
4
pro 21
31877
6
zář 17
8126
3
čvc 16
11404
0
čvn 15
3486