Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to merge two graphs in one view in Odoo?

By
Walid Berrad
on 6/5/15, 5:19 AM 655 views

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 ?

0
Turkesh Patel
On 6/5/15, 7:59 AM

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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/5/15, 5:19 AM
Seen: 655 times
Last updated: 6/5/15, 7:59 AM