Python 人力资源招聘申请的ODOO 11筛选记录
我是奥多的新手。我在努力发展我的知识。然后,我将个人项目命名为“我的招聘”。 I'v继承模型“hr.申请人”,并添加新字段名“x_place”。 模型“place”有很多“res.users”Python 人力资源招聘申请的ODOO 11筛选记录,python,odoo,odoo-11,Python,Odoo,Odoo 11,我是奥多的新手。我在努力发展我的知识。然后,我将个人项目命名为“我的招聘”。 I'v继承模型“hr.申请人”,并添加新字段名“x_place”。 模型“place”有很多“res.users” 对不起,我不明白你想做什么,我也不明白。 class MYRecruitment(models.Model): x_place = fields.Many2one('my.recruitment.place', "Place") class MyRecruitme
对不起,我不明白你想做什么,我也不明白。
class MYRecruitment(models.Model):
x_place = fields.Many2one('my.recruitment.place', "Place")
class MyRecruitmentPlace(models.Model):
_name = "my.recruitment.place"
_description = "Place of Recruitment"
_sql_constraints = [('name_uniq', 'unique (name)', 'The name of the place of Recruitment must be unique!')]
name = fields.Char("Place", required=True, translate=True)
user_ids = fields.Many2many('res.users', string="Owners")
sequence = fields.Integer("Sequence", default=1, help="Gives the sequence order when displaying a list of place.")
<odoo>
<data>
<record model="ir.ui.view" id="hr_kanban_view_applicant_my_extend">
<field name="name">Hr Applicants kanban Extend</field>
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.hr_kanban_view_applicant"/>
<field name="arch" type="xml">
<xpath expr="//kanban" position="attributes">
<attribute name="quick_create">false</attribute>
<attribute name="default_order">create_date desc</attribute>
</xpath>
</field>
</record>
</data>
</odoo>
Place:
----------------------------------------
Place User
---------------------------------------
Place01 user1,user2,user3
Place02 user2
Place03 user3
----------------------------------------
Applicant:
----------------------------------------
Name Place
----------------------------------------
App1 Place01
App2 Place01
App3 Place02
App4 Place03
-----------------------------------------
user1:
show App1
user2:
show App1,App2, App3
user3:
Show App1,App4