Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
2855 Vues

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
Ignorer

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

Like,

"depends": ["hr_payroll"],

Meilleure réponse

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

thanks.  

Avatar
Ignorer
Auteur Meilleure réponse

Thanks for your answer. Now it works

Avatar
Ignorer
Publications associées Réponses Vues Activité
5
mars 20
12186
1
août 19
4978
1
nov. 24
668
1
juin 24
710
1
mai 24
1675