Files
gzth/yuthon_hr_employee_approval/models/hr_employee_page.py
T
2025-07-28 15:36:29 +08:00

141 lines
6.1 KiB
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class HrYuthonEmergencyContactLine(models.Model):
_name = 'hr.yuthon.emergency.contact.line'
_description = "紧急联系人明细行"
employee_id = fields.Many2one('hr.employee', string="关联员工")
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
name = fields.Char(string="姓名")
user_relationship = fields.Selection([("father", "父子"), ("porters", "父女"), ("mother", "母子"), ('daughter', '母女'), ("spouse", "其他")], string="关系")
workplace = fields.Char(string="工作单位")
post = fields.Char(string="岗位")
phone_number = fields.Char(string="手机号")
class HrYuthonWorkExperienceLine(models.Model):
_name = 'hr.yuthon.work.experience.line'
_description = "工作经验明细行"
employee_id = fields.Many2one('hr.employee', string="关联员工")
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
start_date = fields.Date(string="开始日期")
department = fields.Char(string="部门")
end_date = fields.Date(string="结束日期")
work_place = fields.Char(string="工作单位")
post = fields.Char(string="岗位")
contact_user = fields.Char(string="联系人")
phone_number = fields.Char(string="联系人手机号")
class HrYuthonEducationExperienceLine(models.Model):
_name = 'hr.yuthon.education.experience.line'
_description = "教育经历明细行"
employee_id = fields.Many2one('hr.employee', string="关联员工")
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
name_school = fields.Char(string="学校名称")
start_date = fields.Date(string="入学时间")
end_date = fields.Date(string="毕业时间")
in_school_duties = fields.Char(string="在校职务")
professional = fields.Char(string="专业")
part_time_diploma = fields.Char(string="非全日制学历")
Part_time_degree = fields.Char(string="非全日制学位")
full_time_degree = fields.Char(string="全日制学位")
full_time_diploma = fields.Char(string="全日制学历")
major_courses = fields.Char(string="主修课程")
class HrYuthonPersonalSkillsSchedule(models.Model):
_name = 'hr.yuthon.personal.skills.schedule'
_description = "个人技能明细行"
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
lingual = fields.Char(string='语种')
exam_grades = fields.Char(string='考试等级')
is_hear = fields.Boolean(string='听')
is_speak = fields.Boolean(string='说')
is_read = fields.Boolean(string='读')
is_write = fields.Boolean(string='写')
class HrYuthonDirectlyDetailLines(models.Model):
_name = 'hr.yuthon.directly.detail.lines'
_description = "直属亲属明细行"
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
name = fields.Char(string='姓名')
relational = fields.Selection([("father", "父子"), ("porters", "父女"), ("mother", "母子"), ('daughter', '母女'), ("spouse", "其他")], string="关系")
workplace = fields.Char(string='工作单位及职务')
phone = fields.Char(string='联系电话')
class HrYuthonMostRecentWorkDetailLine(models.Model):
_name = 'hr.yuthon.recent.work.detail.line'
_description = "最近工作经历明细行"
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
position = fields.Char(string='单位名称')
post = fields.Char(string="岗位")
last_department = fields.Char(string='部门')
work_grades = fields.Char(string='工作内容成绩')
last_training = fields.Char(string='培训')
last_work_reason = fields.Char(string='离职原因')
class AwardsLine(models.Model):
_name = 'awards.line'
_description = "获奖情况"
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
name = fields.Char(string='项目')
date = fields.Date(string='时间')
class YuthonTrialScenarioDetailLine(models.Model):
_name = 'yuthon.trial.scenario.detail.line'
_description = "试用方案明细行 "
regularization_login_id = fields.Many2one('yuthon.regularization.approval', string="关联转正信息")
job_responsibilities = fields.Char(string='工作职责')
mission_objectives = fields.Char(string='工作任务与目标')
completion_flag = fields.Char(string='工作完成标志')
weight = fields.Integer(string='权重')
completion_score = fields.Char(string='完成情况')
assessment_scoring = fields.Char(string='考核评分')
class YuthonRewardPunishmentDetails(models.Model):
_name = "yuthon.reward.punishment.details"
_description = "奖惩明细行"
name = fields.Char(string="姓名")
reward_punishment_id = fields.Many2one('yuthon.reward.approval', string="关联奖惩申请")
reward_punishment_type = fields.Selection([('reward', '奖励'), ('punishment', '惩罚')], string="奖惩类型")
reward_punishment_content = fields.Char(string="奖惩内容")
reward_amount = fields.Float(string="奖励金额")
punishment_amount = fields.Float(string="惩罚金额")
remarks = fields.Char(string="备注")
department_id = fields.Many2one('hr.department', string="任职部门")
job_id = fields.Many2one('hr.job', string="岗位")
class YuthonOverInforDetailLines(models.Model):
_name = "yuthon.over.infor.detail.lines"
_description = "移交信息明细行"
infor_id = fields.Many2one('yuthon.reassignment.approval', string="关联移交信息")
content_category = fields.Selection([('1', '档案资料'), ('2', '图书文稿'), ('3', '资产设备'),
('4', '办公用品'), ('5','工作事务'), ('6','其他')], string="内容类别")
things_items = fields.Char(string="事物物品")
detailed_description = fields.Char(string="详细说明")
remarks = fields.Char(string="备注")
class HrJobType(models.Model):
_name = "hr.job.type"
name = fields.Char(string="类别名称")