Add new option and action to hr module from a custom module
I am just a newbie in Odoo. I am creating a custom module for Odoo 11. I want to add a new link as email payslip in hr payroll module . So when admin will navigate to an individual's Payslip, in the action I want to add a new option called email payslip. So when it will be clicked then it will send an email to the employee.
So to achieve this I have made my custom module named as email payslip.
The code is like this
from . import models
The above code shows the email payslip menu in the action but I don't think its right way. Also when I am doing click on the link its showing the employee payslip record.
So can someone help me here? What will be the right approach to achieve this? Any help and suggestions will be really appreciable.