添加功能
This commit is contained in:
@@ -243,7 +243,9 @@
|
||||
<field name="name_school"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="part_time_degree"/>
|
||||
<field name="part_time_diploma"/>
|
||||
<field name="Part_time_degree"/>
|
||||
<field name="full_time_diploma"/>
|
||||
<field name="full_time_degree"/>
|
||||
<field name="professional"/>
|
||||
<field name="documents_ids" widget="preview_many2many"/>
|
||||
|
||||
@@ -8,7 +8,7 @@ class HrYuthonEmergencyContactLine(models.Model):
|
||||
employee_id = fields.Many2one('hr.employee', string="关联员工")
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
name = fields.Char(string="姓名")
|
||||
user_relationship = fields.Selection([("parents", "父母"), ("children", "子女"), ("spouse", "配偶"), ("spouse", "其他")], string="关系")
|
||||
user_relationship = fields.Selection([("father", "父子"), ("porters", "父女"), ("mother", "母子"), ('daughter', '母女'), ("spouse", "其他")], string="关系")
|
||||
workplace = fields.Char(string="工作单位")
|
||||
post = fields.Char(string="岗位")
|
||||
phone_number = fields.Char(string="手机号")
|
||||
@@ -39,8 +39,10 @@ class HrYuthonEducationExperienceLine(models.Model):
|
||||
end_date = fields.Date(string="毕业时间")
|
||||
in_school_duties = fields.Char(string="在校职务")
|
||||
professional = fields.Char(string="专业")
|
||||
Part_time_degree = fields.Char(string="非全日制学历学位")
|
||||
full_time_degree = 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="主修课程")
|
||||
|
||||
|
||||
@@ -63,8 +65,7 @@ class HrYuthonDirectlyDetailLines(models.Model):
|
||||
|
||||
message_login_id = fields.Many2one('yuthon.message.login', string="关联信息登记")
|
||||
name = fields.Char(string='姓名')
|
||||
relational = fields.Selection([("parents", "父母"), ("children", "子女"),
|
||||
("spouse", "配偶"), ("spouse", "其他")], string="关系")
|
||||
relational = fields.Selection([("father", "父子"), ("porters", "父女"), ("mother", "母子"), ('daughter', '母女'), ("spouse", "其他")], string="关系")
|
||||
workplace = fields.Char(string='工作单位及职务')
|
||||
phone = fields.Char(string='联系电话')
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class YuthonMessageLogin(models.Model):
|
||||
code = fields.Char(string="编号",
|
||||
default=lambda self: self.env['ir.sequence'].next_by_code('yuthon_message_login_code'))
|
||||
users_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user.id)
|
||||
department_id = fields.Many2one('hr.department', string='部门')
|
||||
department_id = fields.Many2one('hr.department', string='部门', related='users_id.employee_id.department_id')
|
||||
staff_name = fields.Char(string='姓名')
|
||||
sex = fields.Selection([('male', '男'), ('female', '女')], string='性别')
|
||||
date_birth = fields.Date(string='出生年月')
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<group>
|
||||
<field name="staff_name" required="1"/>
|
||||
<field name="users_id" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
<field name="department_id"/>
|
||||
<field name="sex"/>
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="date_birth"/>
|
||||
@@ -128,10 +128,11 @@
|
||||
<field name="name_school"/>
|
||||
<field name="start_date"/>
|
||||
<field name="end_date"/>
|
||||
<field name="part_time_diploma"/>
|
||||
<field name="Part_time_degree"/>
|
||||
<field name="full_time_diploma"/>
|
||||
<field name="full_time_degree"/>
|
||||
<field name="professional"/>
|
||||
<field name="major_courses"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user