Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
3213 Zobrazení

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
Zrušit

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

Like,

"depends": ["hr_payroll"],

Nejlepší odpověď

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

thanks.  

Avatar
Zrušit
Autor Nejlepší odpověď

Thanks for your answer. Now it works

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
bře 20
12725
1
srp 19
5560
1
lis 24
1307
1
čvn 24
1337
1
kvě 24
2650