Odoo Help

0

0
4 Answers
0



Did you add  dependency   hr_payroll   in    __manifest__.py  ?


Thanks !

Shameem babu @ iWesabe

0
Mayank Gosai
2018/01/19 12:06

Hi Festy,

Your code seems to be good.

Try this:

<record model="ir.ui.view" id="view_hr_payslip_inherit_form_extended">

     <field name="name">hr.payslip.inherit.form</field>

     <field name="model">hr.payslip</field>

     <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>

     <field name="arch" type="xml">

         <xpath expr="//page[1]" position="after">

             <page string="New Page Tab">

            </page>

         </xpath>

     </field>

</record>

Hope it helps,

Regards,

Mayank Gosai

0
Festy
2018/01/19 21:50

Thanks for your answer mayank. But I have problem again, when I add tree and some fields inside page, it doesnt work again.

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?

1 Comment
Mayank Gosai
2018/01/19 22:46

Hello Festy,

Pleasure to meet you too!

Again looking at this seems good.

Can you confirm your manifest file ?

Does your manifest file contains hr.payslip in depends ?

Regards,

Mayank

Ask a Question
Writer
Tags
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now