添加功能
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user