添加功能

This commit is contained in:
李鹏宇
2026-05-18 11:27:58 +08:00
parent 3793686777
commit 91dd93a895
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -110,10 +110,9 @@ class AttendanceIot(models.Model):
return {
'name': '考勤机日志',
'type': 'ir.actions.act_window',
'res_model': 'attendance.iot.log',
'res_model': 'iot.message',
'view_mode': 'tree,form',
'domain': [('attendance_iot_id', '=', self.id)],
'context': {'default_attendance_iot_id': self.id},
'domain': [('device_sn', '=', self.name)],
}
@@ -13,9 +13,9 @@
<!-- <field name="broker" optional="hide"/>-->
<!-- <field name="port" optional="hide"/>-->
<!-- <field name="id_valid" optional="hide"/>-->
<field name="company_id"/>
<field name="company_id" column_invisible="1"/>
<field name="number"/>
<field name="remake"/>
<field name="remake" column_invisible="1"/>
<field name="is_connected"/>
<button name="open_record" type="object" string="详情" class="btn btn-blue"/>
<button name="action_view_logs" type="object" string="日志" class="btn btn-blue"/>