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

【airbustest-Pro】从员工身上找居留证到期日、工作证到期日、家庭居留证到期日

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: High High
    • 202106
    • K-空客-Y2020065
    • 空客/airbustest
    • 基础通用功能
    • 隐藏

      代码:
      today = datetime.date.today()
      reminder_day = today + datetime.timedelta(days=self.reminder_advance_days)
      instances = env['hr.employee'].search([('x_jlzdqr', '=', reminder_day),('active', '=', True)])
      if instances:
      instances = instances - instances.filtered(
      lambda emp: emp.termination_date and emp.termination_date <= reminder_day)

      result =

      {'instances': instances, 'business_type': 'juliuzheng'}

      =====
      today = datetime.date.today()
      reminder_day = today + datetime.timedelta(days=self.reminder_advance_days)
      instances = env['hr.employee'].search([('x_gzzdqr', '=', reminder_day),('active', '=', True)])
      if instances:
      instances = instances - instances.filtered(
      lambda emp: emp.termination_date and emp.termination_date <= reminder_day)

      result =

      {'instances': instances, 'business_type': 'gongzuozheng'}
      显示
      代码: today = datetime.date.today() reminder_day = today + datetime.timedelta(days=self.reminder_advance_days) instances = env ['hr.employee'] .search( [('x_jlzdqr', '=', reminder_day),('active', '=', True)] ) if instances: instances = instances - instances.filtered( lambda emp: emp.termination_date and emp.termination_date <= reminder_day) result = {'instances': instances, 'business_type': 'juliuzheng'} ===== today = datetime.date.today() reminder_day = today + datetime.timedelta(days=self.reminder_advance_days) instances = env ['hr.employee'] .search( [('x_gzzdqr', '=', reminder_day),('active', '=', True)] ) if instances: instances = instances - instances.filtered( lambda emp: emp.termination_date and emp.termination_date <= reminder_day) result = {'instances': instances, 'business_type': 'gongzuozheng'}

      从员工身上找居留证到期日、工作证到期日、家庭居留证到期日
      需要把出发条件调整一下 改成取员工身上的信息

            grant.yang 杨光磊
            peihong.lv 吕佩红
            表决:
            0 为这个问题表决

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

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