Files
gzth/attendance_iot/models/hr_employee.py
T
2025-06-04 20:34:26 +08:00

10 lines
300 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions, _
class HrEmployee(models.Model):
_inherit = "hr.employee"
_description = "考勤机和用户信息的绑定"
attendance_iot_ids = fields.One2many('attendance.iot.user', 'employee_id', string="考勤机信息")