コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
3193 ビュー

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?

アバター
破棄

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

Like,

"depends": ["hr_payroll"],

最善の回答

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

thanks.  

アバター
破棄
著作者 最善の回答

Thanks for your answer. Now it works

アバター
破棄
関連投稿 返信 ビュー 活動
5
3月 20
12719
1
8月 19
5540
1
11月 24
1294
1
6月 24
1323
1
5月 24
2637