10 lines
300 B
Python
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="考勤机信息")
|