From a483ba0d39edb4b464110041a5bb3a63b4714e89 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Thu, 26 Sep 2024 09:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee/__manifest__.py | 1 + yuthon_hr_employee/models/__init__.py | 1 + .../models/inherit_hr_applicant.py | 6 ++- yuthon_hr_employee/models/inherit_hr_job.py | 15 ++----- .../security/ir.model.access.csv | 3 +- .../views/inherit_hr_applicant_views.xml | 15 ++++++- .../views/inherit_hr_job_views.xml | 36 +++-------------- .../models/inherit_hr_applicant.py | 2 + .../models/yuthon_interview_approval.py | 4 +- .../models/yuthon_message_login.py | 2 +- .../models/yuthon_onboard_approval.py | 11 +----- .../views/yuthon_interview_approval_views.xml | 13 ++----- .../views/yuthon_message_login_views.xml | 7 ++-- .../views/yuthon_onboard_approval_views.xml | 19 ++++----- yuthon_work_brand/views/hr_menus.xml | 39 ++++++++++--------- 15 files changed, 73 insertions(+), 101 deletions(-) diff --git a/yuthon_hr_employee/__manifest__.py b/yuthon_hr_employee/__manifest__.py index cd97e9fcf..517a581a5 100644 --- a/yuthon_hr_employee/__manifest__.py +++ b/yuthon_hr_employee/__manifest__.py @@ -28,6 +28,7 @@ 'wizard/hr_employee_wizard_views.xml', 'views/inherit_hr_applicant_views.xml', 'views/publish_applicant_setting_views.xml', + 'views/yuthon_job_postings_views.xml', ], 'installable': True, 'application': False, diff --git a/yuthon_hr_employee/models/__init__.py b/yuthon_hr_employee/models/__init__.py index 6fefa5327..6511d7071 100644 --- a/yuthon_hr_employee/models/__init__.py +++ b/yuthon_hr_employee/models/__init__.py @@ -7,5 +7,6 @@ from . import inherit_hr_job from . import inherit_hr_applicant from . import applicant_tage_setting from . import publish_applicant_setting +from . import yuthon_job_postings diff --git a/yuthon_hr_employee/models/inherit_hr_applicant.py b/yuthon_hr_employee/models/inherit_hr_applicant.py index e8ed434f1..de9a9b266 100644 --- a/yuthon_hr_employee/models/inherit_hr_applicant.py +++ b/yuthon_hr_employee/models/inherit_hr_applicant.py @@ -19,8 +19,12 @@ class HrApplicant(models.Model): tage_ids = fields.Many2many('applicant.tage.setting', string="应聘标签") is_interview_status = fields.Boolean(string="面试状态") + full_title = fields.Char(string="完整标题", compute="_compute_full_title") - + @api.depends('name') + def _compute_full_title(self): + for record in self: + record.full_title = f"{record.name} 招聘需求表" class HrJobType(models.Model): _name = "hr.job.type" diff --git a/yuthon_hr_employee/models/inherit_hr_job.py b/yuthon_hr_employee/models/inherit_hr_job.py index b2fcd00f4..7883d809a 100644 --- a/yuthon_hr_employee/models/inherit_hr_job.py +++ b/yuthon_hr_employee/models/inherit_hr_job.py @@ -40,19 +40,10 @@ class HrJob(models.Model): years_of_service = fields.Integer(string="工作年限") competency_requirements = fields.Text(string="能力要求") other_notes = fields.Text(string="其他要求说明") + function = fields.Text(string="岗位职责") + + - #招聘信息 - date_of_filing = fields.Date(string="申报日期") - reason_recruitment = fields.Char(string="招聘事由") - ideal_date = fields.Date(string="希望到岗日期") - recruit_start_date = fields.Date(string="招聘开始日期") - recruit_end_date = fields.Date(string="招聘截止日期") - recruit_over_date = fields.Date(string="招聘结束日期") - recruit_priority = fields.Selection([('high', '高'), ('middle', '中'), ('low', '低')], string="招聘优先级") - place_work = fields.Char(string="工作地点") - is_referral = fields.Boolean(string="允许员工推荐") - job_description = fields.Text(string="招聘情况说明") - publish_applicant_ids = fields.Many2many('publish.applicant.setting', string="招聘发布途径") @api.depends('no_of_employee') def _compute_job_personnel(self): diff --git a/yuthon_hr_employee/security/ir.model.access.csv b/yuthon_hr_employee/security/ir.model.access.csv index c2294f8c4..040fe2fe2 100644 --- a/yuthon_hr_employee/security/ir.model.access.csv +++ b/yuthon_hr_employee/security/ir.model.access.csv @@ -10,4 +10,5 @@ access_yuthon_personal_skills_schedule,yuthon_personal_skills_schedule,model_yut 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 access_publish_applicant_setting,publish_applicant_setting,model_publish_applicant_setting,base.group_user,1,1,1,1 -access_applicant_tage_setting,applicant_tage_setting,model_applicant_tage_setting,base.group_user,1,1,1,1 \ No newline at end of file +access_applicant_tage_setting,applicant_tage_setting,model_applicant_tage_setting,base.group_user,1,1,1,1 +access_yuthon_job_postings,yuthon_job_postings,model_yuthon_job_postings,base.group_user,1,1,1,1 \ No newline at end of file diff --git a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml index cd99f8884..817b34290 100644 --- a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml +++ b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml @@ -9,7 +9,7 @@