From c766dba7348bee0429c71b445c167c83a675109a Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Thu, 26 Sep 2024 09:08:01 +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 --- .../models/yuthon_job_postings.py | 21 +++++++ .../views/yuthon_job_postings_views.xml | 56 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 yuthon_hr_employee/models/yuthon_job_postings.py create mode 100644 yuthon_hr_employee/views/yuthon_job_postings_views.xml diff --git a/yuthon_hr_employee/models/yuthon_job_postings.py b/yuthon_hr_employee/models/yuthon_job_postings.py new file mode 100644 index 000000000..b1a20d5de --- /dev/null +++ b/yuthon_hr_employee/models/yuthon_job_postings.py @@ -0,0 +1,21 @@ +from odoo import api, fields, models, _ + +class YuthonJobPostings(models.Model): + _name = 'yuthon.job.postings' + _description = '招聘信息' + + + name = fields.Char(string="工作岗位", required=True) + user_id = fields.Many2one('res.users', string="申报员", default=lambda self: self.env.user) + 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="招聘发布途径") + function = fields.Text(string="岗位职责") \ No newline at end of file diff --git a/yuthon_hr_employee/views/yuthon_job_postings_views.xml b/yuthon_hr_employee/views/yuthon_job_postings_views.xml new file mode 100644 index 000000000..108df2e90 --- /dev/null +++ b/yuthon_hr_employee/views/yuthon_job_postings_views.xml @@ -0,0 +1,56 @@ + + + + yuthon.job.postings.tree + yuthon.job.postings + + + + + + + + yuthon.job.postings.form + yuthon.job.postings + +
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + 招聘信息 + yuthon.job.postings + tree,form + +