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

【Pro-中信】人事提醒-生日提醒触发条件

XMLWord打印

    • Icon: 任务 任务
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202104
    • F-FA-中信银行-Y2020075
    • 中信UAT环境, trustlinktest
    • 人力资源等
    • 隐藏
      today = datetime.date.today()
      reminder_day = today + datetime.timedelta(days=self.reminder_advance_days)
      instances = self.env['hr.employee'].get_birthday_emp(reminder_day)
      if instances:
          instances = instances - instances.filtered(
                  lambda emp: emp.termination_date and emp.termination_date <= reminder_day and emp.job_info_id.job_sequence_id.code == "SQ001")
      
      result = {'instances': instances, 'business_type': 'birthday'}
      
      显示
      today = datetime.date.today() reminder_day = today + datetime.timedelta(days=self.reminder_advance_days) instances = self.env[ 'hr.employee' ].get_birthday_emp(reminder_day) if instances: instances = instances - instances.filtered( lambda emp: emp.termination_date and emp.termination_date <= reminder_day and emp.job_info_id.job_sequence_id.code == "SQ001" ) result = { 'instances' : instances, 'business_type' : 'birthday' }

      人事提醒-生日提醒 需要增加触发条件:
      员工.雇佣信息.职务序列 code = SQ001

            chengdd 程丹丹
            yu.yu 俞晶晶
            表决:
            0 为这个问题表决

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