From f616890b7a25aa484112a0bb2d42c0a4af5d97a4 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 3 Mar 2026 16:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 126203e14..14c161fd1 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -217,12 +217,12 @@ class YuthonWillTask(models.Model): data_nota = ('备注:' + self.remarks + '\n') 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.user_id.id}' - test_msg_id = self.sudo().env["wecom.apps"].sync_send_message_textcard(category='task', user_id=employee_id.wecom_userid, + 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="18562027762", title="日程事项提醒", description=data, url=url, btntxt="详细信息") - if test_msg_id: - self.write({'msg_id': test_msg_id[-1]['msgid']}) + # if test_msg_id: + # self.write({'msg_id': test_msg_id[-1]['msgid']}) return { 'type': 'ir.actions.client', 'tag': 'display_notification',