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

审批流抄送配置

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202008
    • Y-易路产品-
    • UR 测试环境
    • 基础通用功能
    • 隐藏

      employees=[]
      if record.department_id.x_hrbp_sp1:
      employees.append(record.department_id.x_hrbp_sp1.id)
      if record.department_id.x_hrbp_sp2:
      employees.append(record.department_id.x_hrbp_sp2.id)
      if record.department_id.x_hrbp_sp3:
      employees.append(record.department_id.x_hrbp_sp3.id)
      if record.department_id.x_hrbp_2:
      employees.append(record.department_id.x_hrbp_2.id)
      chen=env['hr.employee'].search([('employee_number','=','800015347')])
      zhang=env['hr.employee'].search([('employee_number','=','800138028')])
      _logger.info('---------------------------')
      _logger.info('---------------------------')
      _logger.info('---------------------------')
      _logger.info('当前所有的审批人:%s,%s,%s,%s。陈思明:%s。张洁:%s' % (record.department_id.x_hrbp_sp1.name,record.department_id.x_hrbp_sp2.name,record.department_id.x_hrbp_sp3,record.department_id.x_hrbp_2.name,chen.name,zhang.name))
      _logger.info('employees:%s' % (employees))
      if chen.id in employees:
      cc_user_ids = [zhang.user_id.id]
      _logger.info('cc_user_ids:%s' % (cc_user_ids))
      result = cc_user_ids
      else:
      result = []

      显示
      employees=[] if record.department_id.x_hrbp_sp1: employees.append(record.department_id.x_hrbp_sp1.id) if record.department_id.x_hrbp_sp2: employees.append(record.department_id.x_hrbp_sp2.id) if record.department_id.x_hrbp_sp3: employees.append(record.department_id.x_hrbp_sp3.id) if record.department_id.x_hrbp_2: employees.append(record.department_id.x_hrbp_2.id) chen=env ['hr.employee'] .search( [('employee_number','=','800015347')] ) zhang=env ['hr.employee'] .search( [('employee_number','=','800138028')] ) _logger.info('---------------------------') _logger.info('---------------------------') _logger.info('---------------------------') _logger.info('当前所有的审批人:%s,%s,%s,%s。陈思明:%s。张洁:%s' % (record.department_id.x_hrbp_sp1.name,record.department_id.x_hrbp_sp2.name,record.department_id.x_hrbp_sp3,record.department_id.x_hrbp_2.name,chen.name,zhang.name)) _logger.info('employees:%s' % (employees)) if chen.id in employees: cc_user_ids = [zhang.user_id.id] _logger.info('cc_user_ids:%s' % (cc_user_ids)) result = cc_user_ids else: result = []

      审批流员工自助离职,截图中节点,当审批人是陈思明800015347的情况下抄送员工张洁800138028

        1. 18.png
          18.png
          149 kB
        2. 19.png
          19.png
          102 kB
        3. 20.png
          20.png
          91 kB
        4. 21.png
          21.png
          47 kB

            wenqiang.liu 刘文强
            susu.ma 马梅花
            表决:
            0 为这个问题表决

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