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.