{ 'name': 'Yuthon 出勤管理', 'version': '18.0.1.0.0', 'summary': '打卡出勤:签到/签退,自动计算工时、迟到与状态', 'description': """ 教学模块②(关系层):yuthon_attendance ====================================== 依赖 yuthon_employee。定义出勤记录模型 yuthon.attendance(挂在员工下, 一对一 N:1),并演示计算字段(working_hours / status / late_minutes) 与模块组合(_inherit yuthon.employee 追加反向 attendance_ids)。 教学要点: - Many2one 关系:employee_id 外键 + ondelete='cascade' - computed field:@api.depends 计算工时、迟到分钟、出勤状态 - 约束:_sql_constraints(一人一天一条)、check_in < check_out - 分析视图:graph / pivot 统计出勤 """, 'author': 'Yuthon', 'website': '', 'category': 'Education', 'depends': ['yuthon_employee', 'web'], 'data': [ 'security/ir.model.access.csv', 'views/attendance_views.xml', ], 'demo': [ 'data/demo.xml', ], 'license': 'LGPL-3', 'installable': True, 'application': True, 'auto_install': False, }