From c1b2f7e2407d90011df99d892b9ea999b675ec12 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 10 Apr 2025 16:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/models/yuthon_will_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 90448582a..9366db2c7 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -86,7 +86,7 @@ class YuthonWillTask(models.Model): for employee_id in self.env['hr.employee'].search([('id', 'in', employee_list)]): if not employee_id.wecom_userid: raise UserError("请同步{}的企业微信".format(employee_id.name)) - url = "https://oa.thtzjt.com/mail/view?model={}&res_id={}".format(self._name, self.id) + url = f'/web/login?oauth_access_token={self.env.user.oauth_access_token}&oauth_uid={self.env.user.oauth_access_token}#action={{}}&model=yuthon.will.task&view_type=form&menu_id={{}}' data_name = "事项名称: " + self.task_content + '\n' data_start_time = '开始时间:' + str(self.start_time + timedelta(hours=8)) + '\n' data_user_ids = '参与人: ' + ', '.join(self.employee_ids.mapped('name')) + '\n'