Community mailing list archives

community@mail.odoo.com

Re: Set Line as a default graph type

by
Gaurav Kapse
- 09/19/2016 02:47:35
Hi Team,

Does anybody have any information how to set the line graph as a default graph type.
Thanks in advance.

Regards,
Gaurav

On Mon, Sep 12, 2016 at 11:28 AM, Gaurav Kapse <gaurav.kapse@inspiritvision.com> wrote:
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