From 65a07624347f8bb2068b4bf14388b09f35841951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 23 Aug 2024 10:43:04 +0800 Subject: [PATCH] pengyuthon --- yuthon_notice/models/yuthon_notice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index 5e8ac36f3..8ae2f94ef 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -68,7 +68,7 @@ class YuthonNotice(models.Model): 'notice_origin_id': self.id, }) data = '新的通知公告' + self.name + "请及时确认\n" + 'https://www.thtzjt.com/web' - we_id = self.env['hr.employee'].search(['id', '=', user]).wecom_userid + we_id = self.env['hr.employee'].search([('id', '=', user)]).wecom_userid self.sudo().env["wecom.apps"].sync_send_message(we_id, data) # 普通用户权限是否打开,可能需要配置权限 # 关联待办和不关联待办