Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6444 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 15
89
4
thg 12 21
31877
6
thg 9 17
8123
3
thg 7 16
11403
0
thg 6 15
3486