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

I'm trying to add field in work information tab after Nationality field(odoo14)
and how can i edit this form!
this is my code but it doesn't work


<odoo>
<data>
<record id="Inherit_hr_employee_form" model="ir.ui.view">
<field name="name">Inherit_hr_employee_form</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//form/notebook/page[1]/field[@name='country_id']" position="after">
<field name="passport_validity_date"/>
</xpath>
</field>
</record>
</data>
</odoo>


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

Hi,

Please try with below xpath:



<xpath expr="//field[@name='country_id']" position="after">
<field name="passport_validity_date"/>
xpath>
Ảnh đại diện
Huỷ bỏ

<xpath expr="//field[@name='country_id']" position="after">
<field name="passport_validity_date"/>
</xpath>

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 22
2469
1
thg 1 21
7061
2
thg 12 20
5747
2
thg 5 24
3595
0
thg 6 22
2082