Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3928 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvc 17
3771
3
led 18
20086
1
bře 20
4497
9
lis 21
10497
1
srp 19
4119