Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3222 Widoki

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?

Awatar
Odrzuć

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

Like,

"depends": ["hr_payroll"],

Najlepsza odpowiedź

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

thanks.  

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks for your answer. Now it works

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
mar 20
12728
1
sie 19
5563
1
lis 24
1310
1
cze 24
1341
1
maj 24
2654