Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3586 มุมมอง

Hi Team,


Please help on subjected line...

I'm using odoo community version 11.0-20200418 in windows.

อวตาร
ละทิ้ง

Read inheritance concept: to add modify or delete existing field: https://goo.gl/4Zyc9d

คำตอบที่ดีที่สุด

i dont recommend use replace attribute , other modules can need it , instead of this use invisible attr.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

you can:

1. add invisible attribute for this field.

2. replace this field by other xpath.


for example.


<record
id="view_partner_form_inherit" model="ir.ui.view">
<field name="name">res.partner.remove.parent field</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<!-- #1 -->
<xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>

<!-- #2
<xpath expr="//field[@name='parent_id']" position="replace"></xpath>
-->
</field>
</record>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ต.ค. 23
5842
3
ก.ย. 23
2691
9
มิ.ย. 23
13241
0
พ.ค. 23
2693
1
พ.ค. 23
2126