Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1902 Tampilan

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>


Avatar
Buang
Jawaban Terbai

Hi,

Please try with below xpath:



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

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

Post Terkait Replies Tampilan Aktivitas
0
Apr 22
2469
1
Jan 21
7051
2
Des 20
5743
2
Mei 24
3594
0
Jun 22
2074