Skip to Content
मेन्यू
This question has been flagged

In the below code I don't want to see the field "policy_vat" on the measure dropdown.

I have tried commands like invisible="1", attrs invisible, specified with groups. All are not working. What to do??

<record id="crmdashboard_view_dubins" model="ir.ui.view">

<field name="name">crm.lead.dashboard.lead</field>

<field name="model">crm.lead</field>

<field name="arch" type="xml">

<graph string="Dashboard" type="pie">

<field name="lead_stages" type="row" />

<field name="dashboard_count" type="measure" />

  <field name="policy_vat" invisible="1" />

  </graph>

</field>

</record>



Avatar
Discard
Best Answer

Hi,

    I hope its not your custom graph view and you should inherit the view and replace policy_vat field like,

    <record id="your_view_inherit" model="ir.ui.view">

            <field name="name">crm.lead.dashboard.lead</field>

            <field name="model">crm.lead</field>

            <field name="inherit_id" ref="base_module(crm).base_graph_view_id"/>

            <field name="arch" type="xml">

                <field name="policy_vat" position="replace">

                    <field name="policy_vat" invisible="1"/>

                </field>

                                                or

                <field name="policy_vat" position="replace">

                </field>

            </field>

        </record>

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
जुल॰ 17
3766
3
जन॰ 18
20057
1
मार्च 20
4485
9
नव॰ 21
10487
1
अग॰ 19
4111