跳至內容
選單
此問題已被標幟
1 回覆
3922 瀏覽次數

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
7月 17
3771
3
1月 18
20084
1
3月 20
4495
9
11月 21
10491
1
8月 19
4117