Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3946 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 17
3799
3
jan. 18
20126
1
mrt. 20
4508
9
nov. 21
10510
1
aug. 19
4150