Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
3566 Переглядів

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
5814
3
вер. 23
2656
9
черв. 23
13230
0
трав. 23
2633
1
трав. 23
2097