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',