生活照附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003','E011','E007','E009','E015','E002']:
flag = True
else:
flag = False
护照附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003','E011']:
flag = True
else:
flag = False
一寸证件照附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003','E011','E007','E009','E015','E002']:
flag = True
else:
flag = False
学历学位证附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003','E011']:
flag = True
else:
flag = False
离职证明附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003']:
flag = True
else:
flag = False
体检报告附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E001','E003','E011']:
flag = True
else:
flag = False
学生证附件:
if record_id:
record = env['hr.recruitment.enroll'].search([('applicant_id','=',record_id)],order='create_date desc', limit=1)
if record and record.employee_type.code in ['E007','E009','E015','E002']:
flag = True
else:
flag = False