from hrms.payroll.doctype.payroll_entry import payroll_entry as _payroll_entry
from custom_app.app_module.overrides.payroll_entry import custom_payroll_entry as _custom_payroll_entry
_payroll_entry.set_filter_conditions = _custom_payroll_entry.set_filter_conditions
Paste this code in hooks.py file
Make sure you have created function and change file path according to your file structure