today = datetime.date.today()
yestoday = today-datetime.timedelta(days=1)
res_emps = env['hr.employee'].browse([])
emps_hire = env['hr.employee'].search([('hire_date','=',yestoday),('active','=', True),('employee_status.code','=','active')])
res_emps+=emps_hire
emps_probation = env['hr.employee'].search([('probation_date','=',yestoday),('active','=', True),('employee_status.code','=','active')])
res_emps+=emps_probation
emps_termination = env['hr.employee'].search([('termination_date','=',yestoday),('active','=', True),('employee_status.code','=','active')])
res_emps+=emps_termination
result = {'instances': res_emps,'business_type': 'qiyitianrzl'}