Community mailing list archives

community@mail.odoo.com

Set Line as a default graph type

by
Gaurav Kapse
- 09/12/2016 01:58:57
Dear All,

I want to set the line graph as a default graph type and i am using the below code

<record id="trend_report_view_graph_date" model="ir.ui.view">
            <field name="name">trend.report.graph</field>
            <field name="model">trend.report.vw</field>
            <field name="arch" type="xml">
                <graph string="Trend Analysis" type="line">
                    <field name="tvalue" type="measure" operator="max"/>
                    <field name="date_of_sampling" type="col" interval="day"/>                  
                    <field name="testname" type="row"/>
                </graph>
            </field>
</record>

But still i am not getting the desired result to set line graph as my default graph.
What else i need to do. Kindly advise.

Regards,
Gaurav