Files
gzth/yuthon_hr_attendance/models/hr_employee.py
T
2024-07-27 16:36:31 +08:00

21 lines
760 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions, _
class HrEmployee(models.Model):
_inherit = "hr.employee"
_description = "考勤机和用户信息的绑定"
# {
# "sn": "RL001-00186", # 设备名称
# "user_id": "334", # 设备用户id
# "validity_period": "2019-01-01", # 信息有效期
# "name": "xxx", # 姓名
# "ic_card": "xxx", # 卡号
# "photo": "base64xxx" # 照片
# }
attendance_iot_ids = fields.One2many('attendance.iot.manager', 'employee_id', string="考勤机信息")
# sn = fields.Char(string="设备名称")
# attendance_user_id = fields.Char(string="设备用户id")
# validity_period = fields.Date(string="信息有效期")