[IMP] hr_recruitment search attachments
code moved from the deprecated hr_recruitment_document
This commit is contained in:
@@ -26,6 +26,7 @@ You can define the different phases of interviews and easily rate the applicant
|
||||
'fetchmail',
|
||||
'web_kanban_gauge',
|
||||
'utm',
|
||||
'document',
|
||||
],
|
||||
'data': [
|
||||
'security/hr_recruitment_security.xml',
|
||||
|
||||
@@ -193,6 +193,28 @@
|
||||
<field name="title_action">Send mail regarding our interview</field>
|
||||
</record>
|
||||
|
||||
<record id="hr_case_salesman0_cv" model="ir.attachment">
|
||||
<field name="name">Jones_CV.pdf</field>
|
||||
<field name="datas_fname">Jones_CV.pdf</field>
|
||||
<field name="datas" type="base64" file="hr_recruitment/data/hr_recruitment_demo_jones_cv.pdf"></field>
|
||||
<field name="res_model">hr.applicant</field>
|
||||
<field name="res_id" ref="hr_recruitment.hr_case_salesman0"/>
|
||||
</record>
|
||||
<record id="hr_case_fresher0_cv" model="ir.attachment">
|
||||
<field name="name">Jose_CV.txt</field>
|
||||
<field name="datas_fname">Jose_CV.txt</field>
|
||||
<field name="datas" type="base64" file="hr_recruitment/data/hr_recruitment_demo_jose_cv.txt"></field>
|
||||
<field name="res_model">hr.applicant</field>
|
||||
<field name="res_id" ref="hr_recruitment.hr_case_fresher0"/>
|
||||
</record>
|
||||
<record id="hr_case_programmer_cv" model="ir.attachment">
|
||||
<field name="name">Williams_CV.doc</field>
|
||||
<field name="datas_fname">Williams_CV.doc</field>
|
||||
<field name="datas" type="base64" file="hr_recruitment/data/hr_recruitment_demo_williams_cv.doc"></field>
|
||||
<field name="res_model">hr.applicant</field>
|
||||
<field name="res_id" ref="hr_recruitment.hr_case_programmer"/>
|
||||
</record>
|
||||
|
||||
<record id="message_application_demo" model="mail.message">
|
||||
<field name="model">hr.applicant</field>
|
||||
<field name="res_id" ref="hr_case_advertisement"/>
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
Profile
|
||||
|
||||
Name : Jose
|
||||
Address : 93, Press Avenue
|
||||
: Le Bourget du Lac, 73377,
|
||||
: France
|
||||
Qualification : MCA
|
||||
Email : Jose@gmail.com
|
||||
Mobile : 9968513587
|
||||
Binary file not shown.
@@ -160,6 +160,7 @@ class Applicant(models.Model):
|
||||
user_email = fields.Char(related='user_id.email', type="char", string="User Email", readonly=True)
|
||||
attachment_number = fields.Integer(compute='_get_attachment_number', string="Number of Attachments")
|
||||
employee_name = fields.Char(related='emp_id.name', string="Employee Name")
|
||||
attachment_ids = fields.One2many('ir.attachment', 'res_id', domain=[('res_model', '=', 'hr.applicant')], string='Attachments')
|
||||
|
||||
@api.depends('date_open', 'date_closed')
|
||||
@api.one
|
||||
|
||||
@@ -213,6 +213,7 @@
|
||||
<field name="stage_id" domain="[]"/>
|
||||
<separator/>
|
||||
<field name="categ_ids"/>
|
||||
<field name="attachment_ids" filter_domain="[('attachment_ids.index_content', 'ilike', self)]" string="Attachments"/>
|
||||
<separator/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter string="Responsible" domain="[]" context="{'group_by':'user_id'}"/>
|
||||
@@ -510,13 +511,29 @@
|
||||
<menuitem id="menu_hr_recruitment_configuration" name="Configuration" parent="menu_hr_recruitment_root"
|
||||
sequence="100" groups="base.group_configuration"/>
|
||||
|
||||
<!-- ALL JOBS REQUESTS -->
|
||||
<!-- ALL JOBS REQUESTS -->
|
||||
<menuitem parent="menu_hr_recruitment_root" id="hr.menu_hr_job_position" action="action_hr_job" sequence="1"/>
|
||||
<menuitem
|
||||
name="Applications"
|
||||
parent="menu_hr_recruitment_root"
|
||||
id="menu_crm_case_categ0_act_job" action="crm_case_categ0_act_job" sequence="2"/>
|
||||
|
||||
<!-- Resume and Letters -->
|
||||
<record model="ir.actions.act_window" id="hr_applicant_resumes">
|
||||
<field name="name">Resumes and Letters</field>
|
||||
<field name="res_model">ir.attachment</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="view_id" ref="mail.view_document_file_kanban"/>
|
||||
<field name="domain">[('res_model','=','hr.applicant')]</field>
|
||||
<field name="help" type="html">
|
||||
<p>
|
||||
Search through resumes and motivation letters.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
<menuitem name="Resumes and Letters" parent="hr_recruitment.menu_hr_recruitment_root" id="menu_crm_case_categ0_act_job02" action="hr_applicant_resumes" sequence="3"/>
|
||||
|
||||
<!-- Stage Tree View -->
|
||||
<record model="ir.ui.view" id="hr_recruitment_stage_tree">
|
||||
<field name="name">hr.recruitment.stage.tree</field>
|
||||
|
||||
Reference in New Issue
Block a user