跳至內容
選單
此問題已被標幟
1 回覆
1896 瀏覽次數

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>


頭像
捨棄
最佳答案

Hi,

Please try with below xpath:



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

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

相關帖文 回覆 瀏覽次數 活動
0
4月 22
2468
1
1月 21
7046
2
12月 20
5740
2
5月 24
3586
0
6月 22
2070