跳至內容
選單
此問題已被標幟
2 回覆
457 瀏覽次數
I have added a custom module which should change the attribute from hide to show. But no change is made. If I click on it directly via the list, then it works.

<record id="mymodule_crm_lead_search_opportunity" model="ir.ui.view"> <field name="name">mymodule.crm.lead.search.opportunity</field> <field name="model">crm.lead</field> <field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/> <field name="arch" type="xml"> <xpath expr="//field[@name='activity_ids']" position="attributes"> <attribute name="optional">show</attribute> </xpath> </field> </record>

頭像
捨棄
作者 最佳答案

I use odoo sh and have made the changes in the editor via the cloud instead of uploading it via github. The error is now fixed.

頭像
捨棄
最佳答案

Hi,

Please check the code below:

<record id="crm_case_tree_view_oppor" model="ir.ui.view">
<field name="name">crm.lead.inherit.module.name</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/>
<field name="arch" type="xml">
<field name="activity_ids" position="attributes">
<attribute name="optional">show</attribute>
</field>
</field>
</record>

Hope it helps.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 25
168
4
7月 25
1522
1
7月 25
836
2
7月 25
859
1
7月 25
1969