添加功能
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
''',
|
||||
'version': '17.0.1.2.1',
|
||||
'category': 'Human Resources/Employees',
|
||||
'license': 'LGPL-3',
|
||||
'license': 'LGPL-3',
|
||||
'author': 'pengyuthon',
|
||||
'website': 'https://www.pengyuthon.com',
|
||||
'depends': ['base', 'hr'],
|
||||
@@ -23,8 +23,8 @@
|
||||
'views/hr_job_type_views.xml',
|
||||
'views/inherit_hr_job_views.xml',
|
||||
'wizard/hr_employee_wizard_views.xml',
|
||||
'views/yuthon_board_views.xml',
|
||||
'views/yuthon_message_views.xml',
|
||||
'views/yuthon_message_login_views.xml',
|
||||
'views/yuthon_onboard_approval_views.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'application': False,
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from . import yuthon_hr_employee
|
||||
from . import yuthon_message_login
|
||||
from . import yuthon_onboard_approval
|
||||
from . import hr_employee_page
|
||||
from . import yuthon_job_lv
|
||||
from . import yuthon_hr_department
|
||||
from . import inherit_res_user
|
||||
from . import inherit_hr_job
|
||||
from . import yuthon_board
|
||||
from . import yuthon_message
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ class YuthonEmergencyContactLine(models.Model):
|
||||
_description = "紧急联系人明细行"
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
name = fields.Char(string="姓名")
|
||||
user_sfz = fields.Char(string="身份证")
|
||||
user_relationship = fields.Selection([("parents", "父母"), ("children", "子女"), ("spouse", "配偶"), ("spouse", "其他")], string="关系")
|
||||
workplace = fields.Char(string="工作单位")
|
||||
@@ -20,6 +22,7 @@ class YuthonWorkExperienceLine(models.Model):
|
||||
_description = "工作经验明细行"
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
start_date = fields.Date(string="开始日期")
|
||||
end_date = fields.Date(string="结束日期")
|
||||
work_place = fields.Char(string="工作单位")
|
||||
@@ -34,6 +37,7 @@ class YuthonEducationExperienceLine(models.Model):
|
||||
_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="毕业时间")
|
||||
@@ -49,6 +53,7 @@ class YuthonSkillsCertificatesLine(models.Model):
|
||||
_description = "技能证书管理明细行"
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
rank_name = fields.Char(string='职级名称')
|
||||
rank_type = fields.Char(string='职级类型')
|
||||
rank_time = fields.Date(string='职级时间')
|
||||
@@ -58,7 +63,7 @@ class YuthonPersonalSkillsSchedule(models.Model):
|
||||
_name = 'yuthon.personal.skills.schedule'
|
||||
_description = "个人技能明细行"
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
lingual = fields.Char(string='语种')
|
||||
exam_grades = fields.Char(string='考试等级')
|
||||
is_hear = fields.Boolean(string='听')
|
||||
@@ -70,10 +75,22 @@ class YuthonDirectlyDetailLines(models.Model):
|
||||
_name = 'yuthon.directly.detail.lines'
|
||||
_description = "直属亲属明细行"
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
name = fields.Char(string='姓名')
|
||||
relational = fields.Selection([("parents", "父母"), ("children", "子女"),
|
||||
("spouse", "配偶"), ("spouse", "其他")], string="关系")
|
||||
workplace = fields.Char(string='工作单位及职务')
|
||||
phone = fields.Char(string='联系电话')
|
||||
email = fields.Char(string='邮箱')
|
||||
|
||||
class YuthonMostRecentWorkDetailLine(models.Model):
|
||||
_name = '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='离职原因')
|
||||
|
||||
+18
-11
@@ -12,13 +12,14 @@ nation_list = [('a', '汉族'), ('b', '壮族'), ('v', '满族'), ('d', '回族'
|
||||
('b2', '高山族'), ('c2', '珞巴族'), ('d2', '壮族')]
|
||||
|
||||
|
||||
class YuthonMessage(models.Model):
|
||||
_name = 'yuthon.message'
|
||||
class YuthonMessageLogin(models.Model):
|
||||
_name = 'yuthon.message.login'
|
||||
_description = "信息登记"
|
||||
_rec_name = 'name'
|
||||
|
||||
#基本信息
|
||||
name = fields.Char(string='姓名', default="人员信息登记表")
|
||||
name = fields.Char(string='名称', default="人员信息登记表")
|
||||
staff_name = fields.Char(string='姓名')
|
||||
sex = fields.Selection([('male', '男'), ('female', '女')], string='性别')
|
||||
date_birth = fields.Date(string='出生年月')
|
||||
nation = fields.Selection(nation_list, string='民族')
|
||||
@@ -60,21 +61,27 @@ class YuthonMessage(models.Model):
|
||||
#亲属情况
|
||||
is_relatives_work = fields.Boolean(string='是否有亲属在本单位')
|
||||
relatives_work = fields.Char(string='亲属姓名')
|
||||
relatives_work_date = fields.Date(string='出生年月')
|
||||
relatives_work_phone = fields.Char(string='联系电话')
|
||||
relatives_work_address = fields.Char(string='家庭住址')
|
||||
relatives_work_department = fields.Many2one('hr.department' ,string='部门')
|
||||
relatives_work_position = fields.Selection([("parents", "父母"), ("children", "子女"),
|
||||
("spouse", "配偶"), ("spouse", "其他")], string="关系")
|
||||
# 紧急联系人
|
||||
emergency_contact_ids = fields.One2many('yuthon.emergency.contact.line', 'employee_id', string="紧急联系人明细行")
|
||||
emergency_contact_ids = fields.One2many('yuthon.emergency.contact.line', 'message_login_id', string="紧急联系人明细行")
|
||||
# 教育经历
|
||||
education_experience_ids = fields.One2many('yuthon.education.experience.line', 'employee_id',
|
||||
education_experience_ids = fields.One2many('yuthon.education.experience.line', 'message_login_id',
|
||||
string="教育经历明细行")
|
||||
# 工作经历
|
||||
work_experience_ids = fields.One2many('yuthon.work.experience.line', 'employee_id', string="工作经历明细行")
|
||||
# # 工作经历
|
||||
work_experience_ids = fields.One2many('yuthon.work.experience.line', 'message_login_id', string="工作经历明细行")
|
||||
|
||||
# 直属亲属情况
|
||||
direct_relative_ids = fields.One2many('yuthon.directly.detail.lines', 'employee_id', string="直属亲属情况明细行")
|
||||
# # 直属亲属情况
|
||||
direct_relative_ids = fields.One2many('yuthon.directly.detail.lines','message_login_id', string="直属亲属情况明细行")
|
||||
|
||||
#个人技能
|
||||
personal_skill_ids = fields.One2many('yuthon.personal.skills.schedule', 'employee_id', string="个人技能明细行")
|
||||
# #个人技能
|
||||
personal_skill_ids = fields.One2many('yuthon.personal.skills.schedule','message_login_id', string="个人技能明细行")
|
||||
|
||||
#最近工作单位
|
||||
last_work_unit_ids = fields.One2many('yuthon.recent.work.detail.line', 'message_login_id', string="最近工作单位情况")
|
||||
|
||||
|
||||
+8
-5
@@ -11,11 +11,12 @@ nation_list = [('a', '汉族'), ('b', '壮族'), ('v', '满族'), ('d', '回族'
|
||||
('v1', '乌孜别克族'), ('w1', '门巴族'), ('x1', '鄂伦春族'), ('y1', '独龙族'), ('z1', '塔塔尔族'), ('a2', '赫哲族'),
|
||||
('b2', '高山族'), ('c2', '珞巴族'), ('d2', '壮族')]
|
||||
|
||||
class YuthonBoard(models.Model):
|
||||
_name = 'yuthon.board'
|
||||
class YuthonOnboardApproval(models.Model):
|
||||
_name = 'yuthon.onboard.approval'
|
||||
_description = "入职申请"
|
||||
|
||||
name = fields.Char(string='姓名', default='入职申请表')
|
||||
name = fields.Char(string='名称', default='入职申请表')
|
||||
worker_name = fields.Char(string='姓名')
|
||||
company = fields.Many2one('res.company', string='公司')
|
||||
date_birth = fields.Date(string='出生年月')
|
||||
nation = fields.Selection(nation_list, string='民族')
|
||||
@@ -25,6 +26,8 @@ class YuthonBoard(models.Model):
|
||||
('league_member', '共青团员'), ('people', '群众')], string="政治面貌")
|
||||
education = fields.Char(string='学历')
|
||||
onboard_time = fields.Date(string='入职时间')
|
||||
probation_period = fields.Date(string='试用期')
|
||||
contract_period = fields.Date(string='合同起止日期')
|
||||
probation_period = fields.Selection([('zero','0个月'), ('one','一个月'),
|
||||
('two','两个月'), ('three','三个月'), ('year','一年')], string='试用期')
|
||||
contract_start = fields.Date(string='合同开始日期')
|
||||
contract_end = fields.Date(string='合同结束日期')
|
||||
select_company = fields.Many2one('res.company',string='选择入职公司')
|
||||
@@ -6,7 +6,8 @@ access_yuthon_emergency_contact_line,yuthon_emergency_contact_line,model_yuthon_
|
||||
access_yuthon_work_experience_line,yuthon_work_experience_line,model_yuthon_work_experience_line,base.group_user,1,1,1,1
|
||||
access_yuthon_education_experience_line,yuthon_education_experience_line,model_yuthon_education_experience_line,base.group_user,1,1,1,1
|
||||
access_yuthon_skills_certificates_line,yuthon_skills_certificates_line,model_yuthon_skills_certificates_line,base.group_user,1,1,1,1
|
||||
access_yuthon_board,yuthon_board,model_yuthon_board,base.group_user,1,1,1,
|
||||
access_yuthon_message,yuthon_message,model_yuthon_message,base.group_user,1,1,1,1
|
||||
access_yuthon_onboard_approval,yuthon_onboard_approval,model_yuthon_onboard_approval,base.group_user,1,1,1,
|
||||
access_yuthon_message_login,yuthon_message_login,model_yuthon_message_login,base.group_user,1,1,1,1
|
||||
access_yuthon_personal_skills_schedule,yuthon_personal_skills_schedule,model_yuthon_personal_skills_schedule,base.group_user,1,1,1,1
|
||||
access_yuthon_directly_detail_lines,yuthon_directly_detail_lines,model_yuthon_directly_detail_lines,base.group_user,1,1,1,1
|
||||
access_yuthon_recent_work_detail_line,yuthon_recent_work_detail_line,model_yuthon_recent_work_detail_line,base.group_user,1,1,1,1
|
||||
|
||||
|
@@ -0,0 +1,187 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="yuthon_message_login_tree" model="ir.ui.view">
|
||||
<field name="name">yuthon.message.login.tree</field>
|
||||
<field name="model">yuthon.message.login</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="yuthon_message_login_form" model="ir.ui.view">
|
||||
<field name="name">yuthon.message.login.form</field>
|
||||
<field name="model">yuthon.message.login</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name" required="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group col="4" string="基本情况">
|
||||
<group>
|
||||
<field name="staff_name" required="1"/>
|
||||
<field name="sex"/>
|
||||
<field name="date_birth"/>
|
||||
<field name="nation"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="political"/>
|
||||
<field name="party_time"/>
|
||||
<field name="house_hold"/>
|
||||
<field name="house_type"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="phone"/>
|
||||
<field name="marital_status"/>
|
||||
<field name="working_time"/>
|
||||
<field name="current_address"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="email"/>
|
||||
<field name="home_address"/>
|
||||
<field name="home_phone"/>
|
||||
<field name="origin"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="oe_clear_row" style="margin: 35px 0">
|
||||
</div>
|
||||
<group>
|
||||
<field name="is_relatives_work"/>
|
||||
<field name="relatives_work" invisible='not is_relatives_work' required="1"/>
|
||||
<field name="relatives_work_department" invisible='not is_relatives_work'/>
|
||||
<field name="relatives_work_phone" invisible='not is_relatives_work'/>
|
||||
<field name="relatives_work_address" invisible='not is_relatives_work'/>
|
||||
<field name="relatives_work_date" invisible='not is_relatives_work'/>
|
||||
<field name="relatives_work_position" invisible='not is_relatives_work'/>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="紧急联系人">
|
||||
<field name="emergency_contact_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="name" required="1"/>
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="user_relationship"/>
|
||||
<field name="user_sfz"/>
|
||||
<field name="workplace"/>
|
||||
<field name="phone_number"/>
|
||||
<field name="home_address"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="工作经历">
|
||||
<field name="work_experience_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="work_place"/>
|
||||
<field name="post"/>
|
||||
<field name="contact_user"/>
|
||||
<field name="phone_number"/>
|
||||
<field name="reason_leaving"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="教育经历">
|
||||
<field name="education_experience_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="name_school"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="Part_time_degree"/>
|
||||
<field name="full_time_degree"/>
|
||||
<field name="professional"/>
|
||||
<field name="major_courses"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="配偶情况(已婚者)" invisible="marital_status != 'married'">
|
||||
<group>
|
||||
<group>
|
||||
<field name="spouse_name"/>
|
||||
<field name="spouse_date"/>
|
||||
<field name="spouse_phone"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="spouse_work"/>
|
||||
<field name="spouse_position"/>
|
||||
<field name="spouse_degree"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="个人技能">
|
||||
<group>
|
||||
<group>
|
||||
<field name="hobbies"/>
|
||||
<field name="specialty"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="self_evaluation"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="personal_skill_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="lingual"/>
|
||||
<field name="exam_grades"/>
|
||||
<field name="is_hear"/>
|
||||
<field name="is_speak"/>
|
||||
<field name="is_read"/>
|
||||
<field name="is_write"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="直属亲戚信息">
|
||||
<field name="direct_relative_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="name" required="1"/>
|
||||
<field name="relational"/>
|
||||
<field name="workplace"/>
|
||||
<field name="phone"/>
|
||||
<field name="email"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="最近工作情况">
|
||||
<field name="last_work_unit_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="message_login_id" column_invisible="1"/>
|
||||
<field name="position" required="1"/>
|
||||
<field name="post"/>
|
||||
<field name="last_department"/>
|
||||
<field name="work_grades"/>
|
||||
<field name="last_training"/>
|
||||
<field name="last_work_reason"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="yuthon_message_login_action" model="ir.actions.act_window">
|
||||
<field name="name">基本信息</field>
|
||||
<field name="res_model">yuthon.message.login</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem id="hr_set_process_menu"
|
||||
name="流程"
|
||||
parent="hr.menu_hr_root"
|
||||
sequence="7"/>
|
||||
|
||||
<menuitem id="hr_process_manage_menu"
|
||||
name="信息登记"
|
||||
parent="hr_set_process_menu"
|
||||
action="yuthon_message_login_action"
|
||||
sequence="3"/>
|
||||
|
||||
</odoo>
|
||||
@@ -1,170 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="yuthon_message_tree" model="ir.ui.view">
|
||||
<field name="name">yuthon.message.tree</field>
|
||||
<field name="model">yuthon.message</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="yuthon_message_form" model="ir.ui.view">
|
||||
<field name="name">yuthon.message.form</field>
|
||||
<field name="model">yuthon.message</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="col-12 text-center" >
|
||||
<h1>
|
||||
<field name="name" required="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group col="4" >
|
||||
<group>
|
||||
<field name="sex"/>
|
||||
<field name="date_birth"/>
|
||||
<field name="nation"/>
|
||||
<field name="origin"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="political"/>
|
||||
<field name="party_time"/>
|
||||
<field name="house_hold"/>
|
||||
<field name="house_type"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="phone"/>
|
||||
<field name="marital_status"/>
|
||||
<field name="working_time"/>
|
||||
<field name="current_address"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="email"/>
|
||||
<field name="home_address"/>
|
||||
<field name="home_phone"/>
|
||||
<field name="hobbies"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="specialty"/>
|
||||
<field name="self_evaluation"/>
|
||||
</group>
|
||||
<group string="最近两个工作单位情况" col="2">" >
|
||||
<group>
|
||||
<field name="last_work"/>
|
||||
<field name="last_work_department"/>
|
||||
<field name="last_work_position"/>
|
||||
<field name="last_work_grades"/>
|
||||
<field name="last_work_training"/>
|
||||
<field name="last_work_reason"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="last_work"/>
|
||||
<field name="last_work_department"/>
|
||||
<field name="last_work_position"/>
|
||||
<field name="last_work_grades"/>
|
||||
<field name="last_work_training"/>
|
||||
<field name="last_work_reason"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="oe_clear_row" style="margin: 35px 0">
|
||||
</div>
|
||||
<group>
|
||||
<field name="is_relatives_work"/>
|
||||
<field name="relatives_work" invisible="not is_relatives_work"/>
|
||||
<field name="relatives_work_department" invisible="not is_relatives_work"/>
|
||||
<field name="relatives_work_position" invisible="not is_relatives_work"/>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="紧急联系人">
|
||||
<field name="emergency_contact_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="user_relationship"/>
|
||||
<field name="user_sfz"/>
|
||||
<field name="workplace"/>
|
||||
<field name="phone_number"/>
|
||||
<field name="home_address"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="工作经历">
|
||||
<field name="work_experience_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="work_place"/>
|
||||
<field name="post"/>
|
||||
<field name="contact_user"/>
|
||||
<field name="phone_number"/>
|
||||
<field name="reason_leaving"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="教育经历">
|
||||
<field name="education_experience_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="name_school"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="Part_time_degree"/>
|
||||
<field name="full_time_degree"/>
|
||||
<field name="professional"/>
|
||||
<field name="major_courses"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="配偶情况(已婚者)" invisible="marital_status != 'married'">
|
||||
<group>
|
||||
<group>
|
||||
<field name="spouse_name"/>
|
||||
<field name="spouse_date"/>
|
||||
<field name="spouse_phone"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="spouse_work"/>
|
||||
<field name="spouse_position"/>
|
||||
<field name="spouse_degree"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="个人技能">
|
||||
<field name="personal_skill_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="lingual"/>
|
||||
<field name="exam_grades"/>
|
||||
<field name="is_hear"/>
|
||||
<field name="is_speak"/>
|
||||
<field name="is_read"/>
|
||||
<field name="is_write"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string="直属亲戚信息">
|
||||
<field name="direct_relative_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="employee_id" column_invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="relational"/>
|
||||
<field name="workplace"/>
|
||||
<field name="phone"/>
|
||||
<field name="email"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="yuthon_message_action" model="ir.actions.act_window">
|
||||
<field name="name">基本信息</field>
|
||||
<field name="res_model">yuthon.message</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
</odoo>
|
||||
+20
-13
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="yuthon_board_tree" model="ir.ui.view">
|
||||
<field name="name">yuthon.board.tree</field>
|
||||
<field name="model">yuthon.board</field>
|
||||
<record id="yuthon_onboard_approval_tree" model="ir.ui.view">
|
||||
<field name="name">yuthon.onboard.approval.tree</field>
|
||||
<field name="model">yuthon.onboard.approval</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
@@ -14,9 +14,9 @@
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="yuthon_board_form" model="ir.ui.view">
|
||||
<field name="name">yuthon.board.form</field>
|
||||
<field name="model">yuthon.board</field>
|
||||
<record id="yuthon_onboard_approval_form" model="ir.ui.view">
|
||||
<field name="name">yuthon.onboard.approval.form</field>
|
||||
<field name="model">yuthon.onboard.approval</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
@@ -27,22 +27,24 @@
|
||||
</div>
|
||||
<group col="4">
|
||||
<group>
|
||||
<field name="worker_name" required="1"/>
|
||||
<field name="company"/>
|
||||
<field name="date_birth"/>
|
||||
<field name="nation"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="nation"/>
|
||||
<field name="grades"/>
|
||||
<field name="origin"/>
|
||||
<field name="political"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="political"/>
|
||||
<field name="education"/>
|
||||
<field name="onboard_time"/>
|
||||
<field name="probation_period"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="contract_period"/>
|
||||
<field name="probation_period"/>
|
||||
<field name="contract_start"/>
|
||||
<field name="contract_end"/>
|
||||
<field name="select_company"/>
|
||||
</group>
|
||||
</group>
|
||||
@@ -50,10 +52,15 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="yuthon_board_action" model="ir.actions.act_window">
|
||||
<record id="yuthon_onboard_approval_action" model="ir.actions.act_window">
|
||||
<field name="name">基本信息</field>
|
||||
<field name="res_model">yuthon.board</field>
|
||||
<field name="res_model">yuthon.onboard.approval</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="hr_process_onboard_menu"
|
||||
name="入职申请"
|
||||
parent="hr_set_process_menu"
|
||||
action="yuthon_onboard_approval_action"
|
||||
sequence="1"/>
|
||||
</odoo>
|
||||
@@ -5,9 +5,9 @@
|
||||
<field name="active">False</field>
|
||||
</record>
|
||||
<!-- 人事 -->
|
||||
<record id="hr.menu_hr_root" model="ir.ui.menu">
|
||||
<field name="active">False</field>
|
||||
</record>
|
||||
<!-- <record id="hr.menu_hr_root" model="ir.ui.menu">-->
|
||||
<!-- <field name="active">False</field>-->
|
||||
<!-- </record>-->
|
||||
<!-- 出勤 -->
|
||||
<record id="hr_attendance.menu_hr_attendance_root" model="ir.ui.menu">
|
||||
<field name="active">False</field>
|
||||
@@ -63,35 +63,45 @@
|
||||
name="工作岗位"
|
||||
parent="hr_recruitment_menu_root_board"
|
||||
sequence="3"/>
|
||||
<menuitem id="hr_recruit_post_menu_root_board"
|
||||
name="工作岗位"
|
||||
parent="hr_recruitment_work_job_menu_board"
|
||||
action="hr.action_hr_job"
|
||||
sequence="1"/>
|
||||
<menuitem id="hr_recruitment_stage_menu_board"
|
||||
name="阶段"
|
||||
parent="hr_recruitment_work_job_menu_board"
|
||||
action="hr_recruitment.hr_recruitment_stage_act"
|
||||
sequence="1"/>
|
||||
sequence="3"/>
|
||||
<menuitem id="hr_recruitment_employment_menu_board"
|
||||
name="就业类型"
|
||||
parent="hr_recruitment_work_job_menu_board"
|
||||
action="hr.hr_contract_type_action"
|
||||
sequence="1"/>
|
||||
sequence="6"/>
|
||||
<menuitem id="hr_recruitment_app2_menu_board"
|
||||
name="应用"
|
||||
parent="hr_recruitment_setting_menu_board"
|
||||
sequence="5"/>
|
||||
<menuitem id="hr_recruit_setting_menu_root_board"
|
||||
name="岗位类型配置"
|
||||
parent="hr_recruitment_setting_menu_board"
|
||||
action="yuthon_hr_employee.hr_job_type_action"
|
||||
sequence="1"/>
|
||||
<menuitem id="hr_recruitment_degree_menu_board"
|
||||
name="学历"
|
||||
parent="hr_recruitment_setting_menu_board"
|
||||
action="hr_recruitment.hr_recruitment_degree_action"
|
||||
sequence="1"/>
|
||||
sequence="3"/>
|
||||
<menuitem id="hr_recruitment_reason_menu_board"
|
||||
name="拒绝原因"
|
||||
parent="hr_recruitment_setting_menu_board"
|
||||
action="hr_recruitment.hr_applicant_refuse_reason_action"
|
||||
sequence="3"/>
|
||||
sequence="5"/>
|
||||
<menuitem id="hr_recruitment_label_menu_board"
|
||||
name="标签"
|
||||
parent="hr_recruitment_setting_menu_board"
|
||||
action="hr_recruitment.hr_applicant_category_action"
|
||||
sequence="5"/>
|
||||
sequence="7"/>
|
||||
<!-- 人事 -->
|
||||
<menuitem id="hr_menu_root_board"
|
||||
name="人事管理"
|
||||
@@ -137,12 +147,12 @@
|
||||
<menuitem id="hr_process_onboard_menu_root_board"
|
||||
name="入职申请"
|
||||
parent="hr_set_process_menu_root_board"
|
||||
action="yuthon_hr_employee.yuthon_board_action"
|
||||
action="yuthon_hr_employee.yuthon_onboard_approval_action"
|
||||
sequence="1"/>
|
||||
<menuitem id="hr_process_manage_menu_root_board"
|
||||
name="信息登记"
|
||||
parent="hr_set_process_menu_root_board"
|
||||
action="yuthon_hr_employee.yuthon_message_action"
|
||||
action="yuthon_hr_employee.yuthon_message_login_action"
|
||||
sequence="3"/>
|
||||
<menuitem id="hr_setting_menu_root_board"
|
||||
name="配置"
|
||||
@@ -210,21 +220,11 @@
|
||||
name="招聘"
|
||||
parent="hr_setting_menu_root_board"
|
||||
sequence="5"/>
|
||||
<menuitem id="hr_recruit_post_menu_root_board"
|
||||
name="工作岗位"
|
||||
parent="hr_set_recruitment_menu_root_board"
|
||||
action="hr.action_hr_job"
|
||||
sequence="1"/>
|
||||
<menuitem id="hr_recruit_type_menu_root_board"
|
||||
name="就业类型"
|
||||
parent="hr_set_recruitment_menu_root_board"
|
||||
action="hr.hr_contract_type_action"
|
||||
sequence="3"/>
|
||||
<menuitem id="hr_recruit_setting_menu_root_board"
|
||||
name="岗位类型配置"
|
||||
parent="hr_set_recruitment_menu_root_board"
|
||||
action="yuthon_hr_employee.hr_job_type_action"
|
||||
sequence="5"/>
|
||||
sequence="1"/>
|
||||
<menuitem id="hr_set_planning_menu_root_board"
|
||||
name="活动规划"
|
||||
parent="hr_setting_menu_root_board"
|
||||
|
||||
Reference in New Issue
Block a user