Odoo Help

Welcome!

This community 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.

0

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

By
Drees Far
on 6/9/16, 4:19 AM 256 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>

</record>

Can anyone help please.

Thanks a lot in advance.

Best regards.    

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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