Odoo Help


ODOO9: How to create the action to open the payslip model via smart button?

Vale Trood
on 6/9/16, 4:19 AM 756 views

Hello everybody!!!!

I am creating some smart buttons using ODOO9.

But, my problem is that i couldnt create a smart button to the payslip model.

Here is my code:

   <record id="act_hr_employee_payslip_list" model="ir.actions.act_window">

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

<field name="name">Payslips</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form</field>

<field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id}</field>


Can anyone help please.

Thanks a lot in advance.

Best regards.    

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/9/16, 4:19 AM
Seen: 756 times
Last updated: 6/9/16, 4:19 AM