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

【一起作业】员工管理:新增自定义字段“存在在途离职单”,请协助编写规则

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: High High
    • 202106
    • Y-一起作业-Y2017013
    • 一起作业,17ZUOYEUAT
    • 人力资源等
    • 隐藏

      termination_ids = env['hr.termination'].search(cr, 1, [],order='id')
      dimission_ids = env['employee.dimission'].search(cr, 1, [],order='id')
      for termination in termination_ids:
      termination_obj = env['hr.termination'].browse(cr, 1, termination)
      if termination_obj.state in ['waiting','processing'] and termination_obj.active:
      termination_obj.employee_id.write(

      {'x_czztlzd':True}

      )
      else:
      termination_obj.employee_id.write(

      {'x_czztlzd':False}

      )
      for dimission in dimission_ids:
      dimission_obj = env['employee.dimission'].browse(cr, 1, dimission)
      if dimission_obj.state in ['waiting','processing'] and dimission_obj.active:
      dimission_obj.employee_id.write(

      {'x_czztlzd':True}

      )
      else:
      dimission_obj.employee_id.write(

      {'x_czztlzd':False}

      )

      显示
      termination_ids = env ['hr.termination'] .search(cr, 1, [],order='id') dimission_ids = env ['employee.dimission'] .search(cr, 1, [],order='id') for termination in termination_ids: termination_obj = env ['hr.termination'] .browse(cr, 1, termination) if termination_obj.state in ['waiting','processing'] and termination_obj.active: termination_obj.employee_id.write( {'x_czztlzd':True} ) else: termination_obj.employee_id.write( {'x_czztlzd':False} ) for dimission in dimission_ids: dimission_obj = env ['employee.dimission'] .browse(cr, 1, dimission) if dimission_obj.state in ['waiting','processing'] and dimission_obj.active: dimission_obj.employee_id.write( {'x_czztlzd':True} ) else: dimission_obj.employee_id.write( {'x_czztlzd':False} )

      存在在途离职单:
      1、已删除的离职单、草稿离职单、已拒绝的离职单,不打勾
      2、待审批的离职单、处理中的离职单,打勾;

            wenqiang.liu 刘文强
            karen.li 李帅
            表决:
            0 为这个问题表决

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

                预估时间:
                初始预估 - 尚未指定
                尚未指定
                剩余:
                剩余的估算 - 0小时
                0小时
                实际工作时间:
                耗费时间 - 1.5小时
                1.5小时