콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2149 화면

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
2768
1
1월 21
7384
2
12월 20
5959
2
5월 24
3891
0
6월 22
2314