Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
3203 Visninger

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
Kassér

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

Like,

"depends": ["hr_payroll"],

Bedste svar

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

thanks.  

Avatar
Kassér
Forfatter Bedste svar

Thanks for your answer. Now it works

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
5
mar. 20
12721
1
aug. 19
5546
1
nov. 24
1297
1
jun. 24
1326
1
maj 24
2642