Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3909 Lượt xem

Hi Team,


Please help on subjected line...

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 23
6334
3
thg 9 23
3231
9
thg 6 23
13873
0
thg 5 23
3182
1
thg 5 23
2483