تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3944 أدوات العرض

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>



الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يوليو 17
3794
3
يناير 18
20124
1
مارس 20
4505
9
نوفمبر 21
10509
1
أغسطس 19
4145