白名单
This commit is contained in:
@@ -101,7 +101,7 @@ class HrAttendanceDetail(models.Model):
|
|||||||
# 批量导入时跳过企业微信通知
|
# 批量导入时跳过企业微信通知
|
||||||
if self.env.context.get('skip_iot_notify'):
|
if self.env.context.get('skip_iot_notify'):
|
||||||
return record
|
return record
|
||||||
if record.employee_id.name not in ['Administrator', '张丽芳']:
|
if record.employee_id.name not in ['Administrator', '张丽芳', '李瑾晨']:
|
||||||
resource_user_ids = record.employee_id.resource_calendar_id.resource_user_ids.ids
|
resource_user_ids = record.employee_id.resource_calendar_id.resource_user_ids.ids
|
||||||
is_resource_user = True if record.employee_id.id in resource_user_ids else False
|
is_resource_user = True if record.employee_id.id in resource_user_ids else False
|
||||||
employee_id = record.employee_id
|
employee_id = record.employee_id
|
||||||
|
|||||||
Reference in New Issue
Block a user