Skip to Content
Menu
This question has been flagged
3 Replies
2507 Views

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?

Avatar
Discard

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

Like,

"depends": ["hr_payroll"],

Best Answer

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

thanks.  

Avatar
Discard
Author Best Answer

Thanks for your answer. Now it works

Avatar
Discard
Related Posts Replies Views Activity
5
Mar 20
11627
4
Dec 23
30903
1
Aug 19
4500
1
Nov 24
94
1
Jun 24
172