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

【一起作业】岗位调动:自定义字段“组织单元经理”增加规则,判断员工是不是组织单元经理

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: High High
    • 202105
    • Y-一起作业-Y2017013
    • 一起教育,17ZUOYEUAT
    • 人力资源等
    • 隐藏
      department_managers = []         
      for record in self:
          departments = record.env['hr.department'].search([('active','=',True),('is_in_use','=', True)])
          for department in departments:
              if department.manager_id:
                  department_managers.append(department.manager_id.id)
          if record.employee_id.id in department_managers:
              record[x_sfzzdyjj] = "1"
          else:
              record[x_sfzzdyjj] = "2"
      
      显示
      department_managers = [] for record in self: departments = record.env[ 'hr.department' ].search([( 'active' , '=' ,True),( 'is_in_use' , '=' , True)]) for department in departments: if department.manager_id: department_managers.append(department.manager_id.id) if record.employee_id.id in department_managers: record[x_sfzzdyjj] = "1" else : record[x_sfzzdyjj] = "2"

      岗位调动:自定义字段“组织单元经理”增加规则,判断员工是不是组织单元经理

            chengdd 程丹丹
            karen.li 李帅
            表决:
            0 为这个问题表决

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