21 lines
1.1 KiB
Python
21 lines
1.1 KiB
Python
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="岗位职责") |