34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
{
|
||
'name': 'Yuthon 员工管理',
|
||
'version': '18.0.1.0.0',
|
||
'summary': '大学人事基础:教职工档案(工号/部门/岗位/基本工资)',
|
||
'description': """
|
||
教学模块①(基础层):yuthon_employee
|
||
======================================
|
||
定义教职工(员工)主数据模型 yuthon.employee,是整个「出勤-薪资」体系的
|
||
数据根(root)。后续 yuthon_attendance、yuthon_salary 都依赖本模块。
|
||
|
||
教学要点:
|
||
- 模型定义:_name / _description
|
||
- 字段类型:Char / Selection / Float / Date / Boolean
|
||
- 唯一约束:_sql_constraints(工号不可重复)
|
||
- 模块组合:被其它模块通过 _inherit 追加反向关联(attendance_ids / payslip_ids)
|
||
- ACL:ir.model.access.csv 授权
|
||
""",
|
||
'author': 'Yuthon',
|
||
'website': '',
|
||
'category': 'Education',
|
||
'depends': ['base', 'web'],
|
||
'data': [
|
||
'security/ir.model.access.csv',
|
||
'views/employee_views.xml',
|
||
],
|
||
'demo': [
|
||
'data/demo.xml',
|
||
],
|
||
'license': 'LGPL-3',
|
||
'installable': True,
|
||
'application': True,
|
||
'auto_install': False,
|
||
}
|