Community mailing list archives

Re: Set Line as a default graph type

Apoorv Soral
- 09/21/2016 00:30:13

Thanks much for the info..

On Sep 21, 2016 9:54 AM, "Gaurav Kapse" <> wrote:
Hi Team,

I got to know how can we set line graph as a default graph type.

We need to add below code in the Action

'context': "{'graph_mode':'line'}"

Gaurav Kapse

On Mon, Sep 19, 2016 at 12:17 PM, Gaurav Kapse <> wrote:
Hi Team,

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


On Mon, Sep 12, 2016 at 11:28 AM, Gaurav Kapse <> 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"></field>
            <field name="model"></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"/>

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.


Post to: