shcool/yuthon_attendance/__manifest__.py
2026-07-31 20:38:10 +08:00

34 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
'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,
}