From 1d42aff57328281a14258302eb558e23487daa09 Mon Sep 17 00:00:00 2001 From: ljmwkx <1340053001@qq.com> Date: Thu, 21 Nov 2024 21:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=20?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_wechat/wizard/wecom_api_sync_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_wechat/wizard/wecom_api_sync_wizard.py b/yuthon_wechat/wizard/wecom_api_sync_wizard.py index d77cdf4e2..98a11eb43 100644 --- a/yuthon_wechat/wizard/wecom_api_sync_wizard.py +++ b/yuthon_wechat/wizard/wecom_api_sync_wizard.py @@ -62,7 +62,7 @@ class WeComApiSyncWizard(models.Model): for hr_department in hr_departments: user_result, user_list = self.sudo().env["wecom.apps"].sync_user_list(hr_department.wecom_id) if not user_result: - raise UserError(str(user_result)) + raise UserError(str(user_list)) if user_result: for user in user_list: biz_mail = user.get("biz_mail", "")