添加功能

This commit is contained in:
李鹏宇
2025-11-18 14:52:49 +08:00
parent 4aeb3c5d62
commit 6ae83320f7
+1 -1
View File
@@ -172,7 +172,7 @@ class WeComApps(models.Model):
}
result_data = self.sync_function_api("message_send", "MESSAGE_SEND", data, category)
employee_id = self.env["res.users"].search([("login", "=", user_id)], limit=1).employee_ids
notice_type = 'attendance' if '记得打卡' in description else ''
notice_type = 'attendance' if '记得打卡' in description else 'process'
self.env["attendance.message.log"].create({
"employee_id": employee_id.id,
"content": description,