Employee 5 Worker 10 Subcontractor 15 To Renew hr.contract Contract about to expire Expired hr.contract Contract expired Contract to Renew hr.department department_id Contract about to expire Open Contracts hr.contract [('state', '=', 'open')] HR Contract: set as pending True ir.actions.server code record.set_as_pending() HR Contract: check for pending 50 on_time -7 day HR Contract: check for pending 51 on_time -60 day HR Contract: set as close True ir.actions.server code record.set_as_close() HR Contract: check for close 52 on_time 1 day HR Contract: check for close 53 on_time 1 day