shcool/yuthon_salary/__manifest__.py
2026-07-31 18:15:34 +08:00

36 lines
1.3 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_salary
======================================
依赖 yuthon_employee + yuthon_attendance。定义工资条模型 yuthon.payslip
在月底把「员工基本工资 + 当月出勤聚合结果」join 在一起算出实发工资;
并提供「生成月度工资条」向导做批量处理。
教学要点:
- 跨模型聚合env['yuthon.attendance'].search_count(...) 统计迟到/缺勤
- computed field 多级联动:统计 -> 扣款 -> 实发
- related 字段basic_wage 取自员工基本工资
- TransientModel 向导:批量生成工资条(讲解 wizard 与批量处理)
- 状态机draft -> done
""",
'author': 'Yuthon',
'website': '',
'category': 'Education',
'depends': ['yuthon_employee', 'yuthon_attendance', 'web'],
'data': [
'security/ir.model.access.csv',
'views/payslip_views.xml',
'views/payslip_generate_views.xml',
],
'demo': [
'data/demo.xml',
],
'license': 'LGPL-3',
'installable': True,
'application': True,
'auto_install': False,
}