添加功能
This commit is contained in:
@@ -267,7 +267,6 @@ class HrAttendance(models.Model):
|
||||
if user.start_datetime.date() == fields.date.today():
|
||||
self.card_out_comment(user.resource_id.employee_id,user.template_id.planning_name)
|
||||
|
||||
# 保安部 - 中班
|
||||
# 保安部 - 中班
|
||||
def ba_card_mid_up(self):
|
||||
ba_up_users = self.env['planning.slot'].search(
|
||||
@@ -377,12 +376,12 @@ class HrAttendance(models.Model):
|
||||
self.card_out_comment(user.resource_id.employee_id,user.template_id.planning_name)
|
||||
|
||||
def card_in_comment(self, employee_id, planning_name):
|
||||
data = f"您还有10分钟上班,记得打卡 班次--{planning_name}"
|
||||
data = f"您的班次是{planning_name},还有10分钟上班,记得打卡"
|
||||
self.sudo().env["wecom.apps"].sync_send_message(category='att', user_id='18562027762', message=data)
|
||||
self.sudo().env["wecom.apps"].sync_send_message(category='att', user_id=employee_id.wecom_userid, message=data)
|
||||
|
||||
def card_out_comment(self, employee_id,planning_name):
|
||||
data = f"下班时间到了,记得打卡 班次-{planning_name}"
|
||||
data = f"您的班次是{planning_name},您该下班时间,记得打卡"
|
||||
self.sudo().env["wecom.apps"].sync_send_message(category='att', user_id=employee_id.wecom_userid, message=data)
|
||||
self.sudo().env["wecom.apps"].sync_send_message(category='att', user_id='18562027762', message=data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user