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

【高顿生产】员工转正新增自定义字段,请协助编写取值计算规则。

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: High High
    • 202104
    • G-高顿教育-Y2018097
    • 高顿,测试站,GAODUNUAT
    • 人力资源等
    • 隐藏

      代码:
      for record in self:
      dimissions = self.env['dimission.summary'].search([('employee_id','=',record.employee_id.id)])
      for dimission in dimissions:
      record['x_lzqwlzrq'] = dimission.expected_departure_date
      break
      ==========
      for record in self:
      dimissions = self.env['dimission.summary'].search([('employee_id','=',record.employee_id.id)])
      for dimission in dimissions:
      record['x_lzqrlzrq'] = dimission.leave_time
      break

      显示
      代码: for record in self: dimissions = self.env ['dimission.summary'] .search( [('employee_id','=',record.employee_id.id)] ) for dimission in dimissions: record ['x_lzqwlzrq'] = dimission.expected_departure_date break ========== for record in self: dimissions = self.env ['dimission.summary'] .search( [('employee_id','=',record.employee_id.id)] ) for dimission in dimissions: record ['x_lzqrlzrq'] = dimission.leave_time break

      新增自定义字段:
      期望离职日期,x_lzqwlzrq,date,
      确认离职日期,x_lzqrlzrq,date,
      取值规则:
      当员工有“草稿、待审批、待处理、已批准”的离职单据(自主离职、HR离职)时,员工转正显示离职单据上的离职日期信息

            grant.yang 杨光磊
            karen.li 李帅
            表决:
            0 为这个问题表决

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