From 8dd5ce52081eacf775e27ecb6f57aae4bb715b83 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Thu, 8 Jan 2026 16:04:32 +0800 Subject: [PATCH] 1 --- yuthon_will_task/models/yuthon_will_task.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 0b6c946d0..8d6fb32fc 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -201,11 +201,11 @@ class YuthonWillTask(models.Model): data_nota = ('备注:' + self.remarks) if self.remarks else ('') + '\n' data = data_date + data_name + data_user_ids + data_nota + data_employee_id url = f'https://phone.thtzjt.com/phone/Schedule/{self.id}/{employee_id.id}' - self.sudo().env["wecom.apps"].sync_send_message_textcard(category='task', user_id=employee_id.wecom_userid, - title="日程事项提醒", description=data, url=url, btntxt="详细信息") + # self.sudo().env["wecom.apps"].sync_send_message_textcard(category='task', user_id=employee_id.wecom_userid, + # title="日程事项提醒", description=data, url=url, btntxt="详细信息") test_msg_id = self.sudo().env["wecom.apps"].sync_send_message_textcard(category='task', user_id="18562027762", title="日程事项提醒", description=data, url=url, btntxt="详细信息") - self.write({'msg_id': test_msg_id}) + self.write({'msg_id': test_msg_id[-1]['msgid']}) return { 'type': 'ir.actions.client', 'tag': 'display_notification',