From 4760b79bc6ee84e54ddb8ad1cfec021f4acd00c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 19 Mar 2026 15:22:29 +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_notice/models/yuthon_confirm_users.py | 3 ++- yuthon_notice/views/yuthon_confirm_users_views.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_notice/models/yuthon_confirm_users.py b/yuthon_notice/models/yuthon_confirm_users.py index 54338c1bc..a8b4f3e8f 100644 --- a/yuthon_notice/models/yuthon_confirm_users.py +++ b/yuthon_notice/models/yuthon_confirm_users.py @@ -19,7 +19,8 @@ class YuthonConfirmUsers(models.Model): def withdrawn(self): if self.msg_id: self.sudo().env["wecom.apps"].back_message(self.msg_id, category='approval') - self.unlink() + self.state = 'to_sent' + self.msg_id = '已撤回' def all_withdrawn(self): confirm_noice_ids = self.env["yuthon.confirm.users"].browse(self._context.get('active_ids', self._context.get('active_id'))) diff --git a/yuthon_notice/views/yuthon_confirm_users_views.xml b/yuthon_notice/views/yuthon_confirm_users_views.xml index fc6d87b56..2887fd874 100644 --- a/yuthon_notice/views/yuthon_confirm_users_views.xml +++ b/yuthon_notice/views/yuthon_confirm_users_views.xml @@ -8,7 +8,7 @@ string="公告确认信息" js_class="custom_notice_tree_button" editable="bottom">