diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index ce8da19bb..c0836e79f 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -207,9 +207,9 @@ class YuthonWillTask(models.Model): data_employee_id = ('司机:' + ', '.join(will_id.employee_ids2.mapped('name')) + '\n') if will_id.employee_ids2 else '' data_nota = ('备注:' + will_id.remarks) if will_id.remarks else ('') + '\n' data = data_date + data_name + data_user_ids + data_nota + data_employee_id - self.sudo().env["wecom.apps"].sync_send_message_textcard(category='task', user_id=employee_id.wecom_userid, title="日程事项提醒", description=data, + self.sudo().env["wecom.apps"].sync_send_message_textcard(category='oa', 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, + self.sudo().env["wecom.apps"].sync_send_message_textcard(category='oa', user_id="18562027762", title="日程事项提醒", description=data, url=url, btntxt="详细信息") def button_add_comment(self):