Skip to Content
Menu
This question has been flagged

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.    

Avatar
Discard
Related Posts Replies Views Activity
2
Sep 19
2408
2
Mar 20
14734
1
Sep 19
2833
1
Sep 18
3679
3
Oct 16
5692