考勤机日志

This commit is contained in:
李鹏宇
2026-06-02 09:25:02 +08:00
parent 8644a84193
commit 7ffa3235fe
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class AttendanceIot(models.Model):
'res_model': 'attendance.iot.user',
'view_mode': 'tree',
'domain': [('attendance_iot_id', '=', self.id)],
'context': "{'search_default_group_by_department': True}, {'default_attendance_iot_id': self.id}"
'context': "{'default_attendance_iot_id': self.id}"
}
def compute_iot_num(self):
+1 -1
View File
@@ -78,7 +78,7 @@ class AttendanceIotUser(models.Model):
update_value = {
'cmd': 'editUser',
'edit_mode': 1,
'user_id': f'bd{record.employee_id.mobile_phone}',
'user_id': f'{record.employee_id.mobile_phone}',
'name': record.employee_id.name
}
if record.employee_id.compress_image:
@@ -27,10 +27,9 @@
<search>
<field name="employee_id"/>
<field name="mobile_phone"/>
<field name="department_id"/>
<group expand="0" string="Group By">
<filter name="group_by_department" string="部门" context="{'group_by':'department_id'}"/>
</group>
<searchpanel>
<field name="department_id" select="multi"/>
</searchpanel>
</search>
</field>
</record>