添加功能

This commit is contained in:
李鹏宇
2026-03-19 15:22:29 +08:00
parent c40b9efb13
commit 4760b79bc6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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')))
@@ -8,7 +8,7 @@
string="公告确认信息" js_class="custom_notice_tree_button" editable="bottom">
<header>
<button class="oe_stat_button" name="reminders_notice" string="批量催办" type="object" icon="fa-bars"/>
<button name="withdrawn" string="批量撤回" type="object" icon="fa-bars" lass="oe_stat_button" confirm="确认要撤回吗?"/>
<button name="all_withdrawn" string="批量撤回" type="object" icon="fa-bars" lass="oe_stat_button" confirm="确认要撤回吗?"/>
<button name="notice_publish" string="批量发送" type="object" icon="fa-bars" lass="oe_stat_button"/>
</header>
<field name="employee_id" widget="ztree_select"/>