@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user