12 lines
394 B
Python
12 lines
394 B
Python
from odoo import api, fields, models
|
|
|
|
|
|
class AttendanceIotLog(models.Model):
|
|
_name = 'attendance.iot.log'
|
|
_description = '考勤机日志'
|
|
_order = 'create_date desc'
|
|
|
|
attendance_iot_id = fields.Many2one('attendance.iot', string="考勤机设备", required=True, ondelete='cascade')
|
|
event_type = fields.Char(string="事件类型")
|
|
content = fields.Text(string="内容")
|