@@ -346,10 +346,12 @@ class hr_applicant(base_stage, osv.Model):
|
||||
This override updates the document according to the email.
|
||||
"""
|
||||
if custom_values is None: custom_values = {}
|
||||
val = msg.get('from').split('<')[0]
|
||||
desc = html2plaintext(msg.get('body')) if msg.get('body') else ''
|
||||
defaults = {
|
||||
'name': msg.get('subject') or _("No Subject"),
|
||||
'description': desc,
|
||||
'partner_name':val,
|
||||
'email_from': msg.get('from'),
|
||||
'email_cc': msg.get('cc'),
|
||||
'user_id': False,
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
name: 'Salesperson'
|
||||
partner_phone: '1236547890'
|
||||
categ_ids: [hr_recruitment.tag_applicant_sales]
|
||||
date_action: !eval time.strftime('%Y-%m-15 18:15:00')
|
||||
title_action: 'Send mail regarding our interviwes'
|
||||
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_traineemca0}:
|
||||
@@ -24,6 +26,8 @@
|
||||
name: 'Trainee - MCA'
|
||||
partner_phone: '6633225'
|
||||
categ_ids: [hr_recruitment.tag_applicant_manager]
|
||||
date_action: !eval time.strftime('%Y-%m-10 18:15:00')
|
||||
title_action: 'Call to define real needs about training<'
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_fresher0}:
|
||||
date: !eval time.strftime('%Y-%m-15 16:10:00')
|
||||
@@ -36,6 +40,8 @@
|
||||
name: 'Fresher'
|
||||
partner_phone: '999666735'
|
||||
categ_ids: [hr_recruitment.tag_applicant_it]
|
||||
date_action: !eval time.strftime('%Y-%m-5 18:15:00')
|
||||
title_action: 'Send mail regarding our interviwes'
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_yrsexperienceinphp0}:
|
||||
date: !eval time.strftime('%Y-%m-25 16:25:52')
|
||||
@@ -45,6 +51,8 @@
|
||||
partner_name: 'Sandra Elvis'
|
||||
stage_id: stage_job6
|
||||
name: 'More than 5 yrs Experience in PHP'
|
||||
date_action: !eval time.strftime('%Y-%m-24 18:15:00')
|
||||
title_action: 'Send mail regarding our interviwes'
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_marketingjob0}:
|
||||
date: !eval time.strftime('%Y-%m-26 17:15:32')
|
||||
@@ -56,6 +64,8 @@
|
||||
stage_id: stage_job5
|
||||
name: 'Marketing Job'
|
||||
categ_ids: [hr_recruitment.tag_applicant_sales]
|
||||
date_action: !eval time.strftime('%Y-%m-20 18:15:00')
|
||||
title_action: 'Send mail regarding our interviwes'
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_financejob0}:
|
||||
date: !eval time.strftime('%Y-%m-26 17:39:42')
|
||||
@@ -68,6 +78,8 @@
|
||||
name: 'Finance Job'
|
||||
partner_phone: '33968745'
|
||||
categ_ids: [hr_recruitment.tag_applicant_reserve]
|
||||
date_action: !eval time.strftime('%Y-%m-18 18:15:00')
|
||||
title_action: 'Send mail regarding our interviews'
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_traineemca1}:
|
||||
date: !eval time.strftime('%Y-%m-12 17:49:19')
|
||||
@@ -78,6 +90,8 @@
|
||||
stage_id: stage_job4
|
||||
name: 'Trainee - MCA'
|
||||
partner_phone: '6630125'
|
||||
date_action: !eval time.strftime('%Y-%m-15 18:15:00')
|
||||
title_action: 'Call to define real needs about training'
|
||||
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_programmer}:
|
||||
@@ -91,6 +105,8 @@
|
||||
job_id: hr.job_developer
|
||||
department_id: hr.dep_rd
|
||||
salary_expected: 11000.0
|
||||
date_action: !eval time.strftime('%Y-%m-24 18:15:00')
|
||||
title_action: 'Call to define real needs about training'
|
||||
|
||||
-
|
||||
!record {model: hr.applicant, id: hr_case_advertisement}:
|
||||
@@ -103,6 +119,8 @@
|
||||
name: 'Advertisement'
|
||||
salary_expected: 11000.0
|
||||
categ_ids: [hr_recruitment.tag_applicant_reserve]
|
||||
date_action: !eval time.strftime('%Y-%m-15 18:15:00')
|
||||
title_action: 'Send mail regarding our interviwes'
|
||||
-
|
||||
!record {model: hr.job, id: hr.job_developer}:
|
||||
survey_id: hr_recruitment.survey_job_0
|
||||
|
||||
@@ -235,6 +235,7 @@
|
||||
<field name="title_action"/>
|
||||
<field name="department_id"/>
|
||||
<field name="categ_ids"/>
|
||||
<field name="message_summary"/>
|
||||
<templates>
|
||||
<t t-name="kanban-tooltip">
|
||||
<ul class="oe_kanban_tooltip">
|
||||
@@ -259,8 +260,12 @@
|
||||
<i><field name="name"/></i><br/>
|
||||
<field name="job_id"/><br/>
|
||||
<t t-if="record.partner_mobile.raw_value">Mobile: <field name="partner_mobile"/><br/></t>
|
||||
<t t-if="record.title_action.raw_value"><field name="title_action"/><br/></t>
|
||||
<field name="date_action"/>
|
||||
</div>
|
||||
<div style="padding-left: 0.5em">
|
||||
<t t-if="record.date_action.raw_value and record.date_action.raw_value lt (new Date())" t-set="red">oe_kanban_text_red</t>
|
||||
<span t-attf-class="#{red || ''}"><field name="date_action"/></span>
|
||||
<t t-if="record.date_action.raw_value"> : </t>
|
||||
<field name="title_action"/>
|
||||
</div>
|
||||
<div class="oe_kanban_right">
|
||||
<t t-set="priority" t-value="record.priority.raw_value || 5"/>
|
||||
@@ -280,6 +285,7 @@
|
||||
|
||||
</div>
|
||||
<div class="oe_kanban_footer_left" style="margin-top:5px;">
|
||||
<t t-raw="record.message_summary.raw_value"/>
|
||||
<field name="categ_ids"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user