上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-2324

莉莉丝,申请人资料里的字段可根据员工类型进行匹配

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202104
    • L-上海莉莉丝-Y2019051
    • 基础通用功能
    • 隐藏

      生活照附件:
      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

      显示
      生活照附件: 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

      移动端配置—入职资料完善,有几个自定义的附件字段需要设置自定义,比如员工类型是【全职(社招】时,需要填写生活照附件这个字段,具体关联逻辑如附件excel。

        1. image.png
          image.png
          154 kB
        2. image.png
          image.png
          102 kB
        3. image.png
          image.png
          203 kB
        4. image.png
          image.png
          208 kB
        5. 莉莉丝-招聘附件说明.xlsx
          94 kB

            grant.yang 杨光磊
            yara.chen Yara
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: