!6029 添加功能

Merge pull request !6029 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-10-28 03:51:19 +00:00
committed by Gitee
2 changed files with 1 additions and 5 deletions
@@ -22,10 +22,6 @@ class PropertyManagementList(models.Model):
for record in self:
record.admin_id = record.property_ids[0].admin_id
def push_management(self):
rec = self.env['property.management.list'].search([('is_push', '=', False)])
rec.is_push = True
def get_no_read_count(self):
return self.search_count([('is_push', '=', False)])
@@ -341,7 +341,7 @@
<field name="arch" type="xml">
<xpath expr="//tree" position="inside">
<header>
<button name="batch_push_management" type="object" string="推送" class="oe_highlight"/>
<button name="push_management" type="object" string="推送" class="oe_highlight"/>
<button name="unlink" string="删除" type="object" icon="fa-trash" groups="base.group_system" confirm="确定要删除选中的记录吗?"/>
</header>
</xpath>