تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1952 أدوات العرض

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
أبريل 22
2512
1
يناير 21
7127
2
ديسمبر 20
5793
2
مايو 24
3637
0
يونيو 22
2120