Skip to Content
Menu
This question has been flagged
1 Reply
1321 Views

Hello,


I am trying to run a batch payroll.

I realize that the employee list is filled with a list of employees, which should not be.

At the point i should only see add line and no employees listed.

Can anyone assist please

Avatar
Discard
Best Answer

Hi,

For this you have to inherit and change the function _get_employees in the model: hr.payslip.employees

This function is responsible for loading default values to the employees field.

Thanks

Avatar
Discard
Author

Hi,

I am new to Odoo.

I will be glad if you can assist me on what to do specifically.

How do i inherit and change the function _get_employees in the model