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

Hi, I want to add tree and some fields inside of page. For example like this :

For example, I write code like this :

     <xpath expr="//page[1]" position="after">

         <page string="Pendapatan Karyawan">

             <tree string="Tunjangan Gaji">

                 <field name="gaji_pokok"/>

             </tree>

     </page>

</xpath>


Then, I have error message like this :

 Model 'hr.payslip' does not exist in registry.

Can anyone help me?

아바타
취소

Check Your __manifest__.py Do You Added 'hr_payroll' in Depends?

Like,

"depends": ["hr_payroll"],

베스트 답변

Hai,
 Please add 'hr_payroll'  as dependency in manifest file (__manifest__.py). it may resolve  your issue. 

thanks.  

아바타
취소
작성자 베스트 답변

Thanks for your answer. Now it works

아바타
취소
관련 게시물 답글 화면 활동
5
3월 20
12832
1
8월 19
5717
1
11월 24
1438
1
6월 24
1465
1
5월 24
2858