5 id="menu_hr_recruitment_recruitment"
7 parent="hr.menu_hr_configuration"
10 # ------------------------------------------------------
12 # ------------------------------------------------------
14 <record id="hr_job_categ_action" model="ir.actions.act_window">
15 <field name="name">Applicant Categories</field>
16 <field name="res_model">crm.case.categ</field>
17 <field name="view_type">form</field>
18 <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
19 <field name="domain">[('object_id.model', '=', 'hr.applicant')]</field>
20 <field name="context">{'object_id':'hr.applicant'}</field>
22 # ------------------------------------------------------
24 # ------------------------------------------------------
25 <record id="hr_job_stage_act" model="ir.actions.act_window">
26 <field name="name">Recruitment / Applicants Stages</field>
27 <field name="res_model">hr.recruitment.stage</field>
28 <field name="view_type">form</field>
29 <field name="domain">[]</field>
30 <field name="context">{}</field>
31 <field name="help">Define here your stages of the recruitment process, for example: qualification call, first interview, second interview, refused, hired.</field>
35 # ------------------------------------------------------
37 # ------------------------------------------------------
39 <record model="ir.ui.view" id="crm_case_tree_view_job">
40 <field name="name">Applicants</field>
41 <field name="model">hr.applicant</field>
42 <field name="type">tree</field>
43 <field name="arch" type="xml">
44 <tree string="Applicants" colors="grey:state in ('cancel','done');blue:state=='pending'">
45 <field name="create_date"/>
46 <field name="name" string="Subject"/>
47 <field name="partner_name"/>
48 <field name="email_from"/>
49 <field name="partner_phone"/>
50 <field name="job_id"/>
51 <field name="stage_id"/>
52 <button name="stage_previous" string="Previous" states="open,pending" type="object" icon="gtk-go-back"/>
53 <button name="stage_next" string="Next" states="open,pending" type="object" icon="gtk-go-forward"/>
54 <field name="title_action" invisible="context.get('invisible_next_action', True)"/>
55 <field name="date_action" invisible="context.get('invisible_next_date', True)"/>
56 <field name="source_id" invisible="1"/>
57 <field name="survey" invisible="1"/>
58 <field name="response" invisible="1"/>
59 <field name="priority"/>
60 <field name="type_id" invisible="1"/>
61 <field name="availability" invisible="1"/>
62 <field name="department_id" invisible="context.get('invisible_department', True)"/>
63 <field name="user_id"/>
65 <button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
66 <button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
71 <record model="ir.ui.view" id="crm_case_form_view_job">
72 <field name="name">Jobs - Recruitment Form</field>
73 <field name="model">hr.applicant</field>
74 <field name="type">form</field>
75 <field name="arch" type="xml">
76 <form string="Jobs - Recruitment Form">
77 <group colspan="4" col="8">
78 <field name="name" string="Subject"/>
79 <field name="partner_name"/>
80 <field name="job_id" on_change="onchange_job(job_id)"/>
81 <button name="action_makeMeeting" type="object" string="Meeting" icon="gtk-index"/>
83 <field name="department_id" widget="selection" on_change="onchange_department_id(department_id)"/>
84 <group colspan="2" col="4">
85 <field name="stage_id" domain="['|',('department_id','=',department_id),('department_id','=',False)]"/>
86 <button name="stage_previous" string="" type="object" icon="gtk-go-back"/>
87 <button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
89 <field name="user_id"/>
90 <field name="survey" invisible="1"/>
91 <button name="action_print_survey" string="Interview" type="object" icon="gtk-print" attrs="{'readonly':[('survey','=',False)]}"/>
92 <button name="%(survey.action_view_survey_question_message)d" string="Answer" type="action" icon="gtk-execute" context="{'survey_id': survey, 'response_id': [response], 'response_no':0 ,'active' : response, 'object' : 'hr.applicant', 'cur_id' :active_id}" attrs="{'readonly':[('survey','=',False)]}" groups="base.group_extended"/>
94 <field name="date_action"/>
95 <field name="title_action"/>
97 <notebook colspan="4">
98 <page string="Job Info">
99 <group col="3" colspan="2">
100 <separator colspan="3" string="Contact"/>
101 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
102 <button string="Create Partner"
103 name="%(action_hr_recruitment_partner_create)d"
104 icon="gtk-index" type="action" attrs="{'readonly':[('partner_id','!=',False)]}" groups="base.group_partner_manager"/>
106 <field name="partner_address_id" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="3"/>
107 <field name="email_from" colspan="3"/>
108 <field name="partner_phone" colspan="3"/>
109 <field name="partner_mobile" colspan="3"/>
111 <group col="3" colspan="2">
112 <separator colspan="3" string="Contract Data"/>
113 <field name="availability" colspan="3"/>
114 <field name="salary_expected"/>
115 <field name="salary_expected_extra" nolabel="1"/>
116 <field name="salary_proposed"/>
117 <field name="salary_proposed_extra" nolabel="1"/>
119 <group col="2" colspan="2">
120 <separator colspan="2" string="Qualification"/>
121 <!-- <field name="type_id" domain="[('object_id.model', '=', 'hr.applicant')]"/>-->
122 <field name="type_id" widget="selection"/>
123 <field name="priority" string="Appreciation"/>
124 <field name="source_id"/>
125 <field name="reference"/>
127 <group col="2" colspan="2">
128 <separator colspan="2" string="Dates"/>
129 <field name="create_date"/>
130 <field name="write_date"/>
131 <field name="date_closed"/>
132 <field name="date_open"/>
134 <separator colspan="4" string="Status"/>
135 <group col="8" colspan="4">
136 <field name="state"/>
137 <button name="case_cancel" string="Refuse" states="draft,open,pending" type="object" icon="gtk-cancel"/>
138 <button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
139 <button name="case_pending" string="Pending" states="open" type="object" icon="gtk-media-pause"/>
140 <button name="%(action_hr_recruitment_hired_employee)d" string="Hire" states="open,pending" type="action" icon="terp-partner"/>
141 <button name="case_reset" string="Reset to New" states="done,cancel" type="object" icon="gtk-convert"/>
144 <page string="Communication & History" groups="base.group_extended">
146 <field colspan="4" name="email_cc" string="Global CC" widget="char"/>
148 <field name="message_ids" colspan="4" nolabel="1" mode="tree,form">
149 <tree string="History">
150 <field name="display_text" string="History Information"/>
151 <field name="history" invisible="1"/>
153 string="Reply" attrs="{'invisible': [('history', '!=', True)]}"
154 name="%(crm.action_crm_send_mail)d"
155 context="{'mail':'reply', 'model': 'hr.applicant', 'include_original' : True}"
156 icon="terp-mail-replied" type="action" />
158 <form string="History">
159 <group col="4" colspan="4">
160 <field name="email_from"/>
162 <field name="email_to" widget="char" size="512"/>
163 <field name="email_cc" widget="char" size="512"/>
164 <field name="name" colspan="4" widget="char" size="512"/>
165 <field name="history" invisible="1"/>
167 <notebook colspan="4">
168 <page string="Details">
169 <group attrs="{'invisible': [('history', '!=', True)]}">
170 <field name="description" colspan="4" nolabel="1" height="250"/>
173 name="%(crm.action_crm_send_mail)d"
174 context="{'mail':'reply', 'model': 'hr.applicant', 'include_original' : True}"
175 icon="terp-mail-replied" type="action" />
177 <group attrs="{'invisible': [('history', '=', True)]}">
178 <field name="display_text" colspan="4" nolabel="1" height="250"/>
181 <page string="Attachments">
182 <field name="attachment_ids" colspan="4" readonly="1" nolabel="1"/>
187 <button string="Add Internal Note"
188 name="%(crm.action_crm_add_note)d"
189 context="{'model': 'crm.lead' }"
190 icon="terp-document-new" type="action" />
191 <button string="Send New Email"
192 name="%(crm.action_crm_send_mail)d"
193 context="{'mail':'new', 'model': 'hr.applicant'}"
194 icon="terp-mail-message-new" type="action" />
196 <page string="Notes">
197 <field name="description" nolabel="1" colspan="4"/>
205 <record model="ir.ui.view" id="crm_case_graph_view_job">
206 <field name="name">Jobs - Recruitment Graph</field>
207 <field name="model">hr.applicant</field>
208 <field name="type">graph</field>
209 <field name="arch" type="xml">
210 <graph string="Cases By Stage and Estimates" type="bar" orientation="vertical">
211 <field name="job_id"/>
212 <field name="salary_expected" operator="+"/>
213 <field name="state" group="True"/>
218 <record id="view_crm_case_jobs_filter" model="ir.ui.view">
219 <field name="name">Jobs - Recruitment Search</field>
220 <field name="model">hr.applicant</field>
221 <field name="type">search</field>
222 <field name="arch" type="xml">
223 <search string="Search Jobs">
224 <filter icon="terp-check" string="Current"
225 domain="[('state','in',('draft','open'))]"
226 help="All new and in progress jobs"
229 <separator orientation="vertical"/>
230 <filter icon="terp-document-new" string="New"
231 domain="[('state','=','draft')]"
232 help="All Initial Jobs"
234 <filter icon="terp-camera_test" string="In Progress"
235 domain="[('state','=','open')]"
238 <filter icon="terp-gtk-media-pause" string="Pending"
239 domain="[('state','=','pending')]"
242 <separator orientation="vertical"/>
243 <filter icon="terp-gtk-jump-to-ltr" string="Next Actions"
244 context="{'invisible_next_action':False, 'invisible_next_date':False}"
245 domain="[('date_action','<>',False)]"
246 help="Filter and view on next actions and date"/>
247 <separator orientation="vertical"/>
248 <field name="partner_name" filter_domain="['|','|',('name','ilike',self),('partner_name','ilike',self),('email_from','ilike',self)]" string="Subject / Applicant"/>
249 <field name="job_id" widget="selection"/>
250 <field name="user_id">
251 <filter domain="[('user_id','=',False)]" help="Unassigned Recruitments" icon="terp-personal-" separator="1"/>
254 <group expand="0" string="Group By..." colspan="11" col="20">
255 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
256 <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
257 <separator orientation="vertical"/>
258 <filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
259 <filter string="Degree" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'type_id'}"/>
260 <filter string="Availability" icon="terp-camera_test" domain="[]" context="{'group_by':'availability'}"/>
261 <separator orientation="vertical"/>
262 <filter string="Appreciation" icon="terp-face-plain" domain="[]" context="{'group_by':'priority'}"/>
263 <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
264 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
265 <filter string="Source" icon="terp-face-plain" domain="[]" context="{'group_by':'source_id'}"/>
266 <separator orientation="vertical"/>
267 <filter string="Creation Date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
273 <!-- CRM Lead Calendar View -->
275 <record model="ir.ui.view" id="hr_applicant_calendar_view">
276 <field name="name">Hr Applicants Calendar</field>
277 <field name="model">hr.applicant</field>
278 <field name="type">calendar</field>
279 <field name="priority" eval="2"/>
280 <field name="arch" type="xml">
281 <calendar string="Applicants"
282 date_start="date_action" color="user_id">
283 <field name="name" />
284 <field name="partner_name" />
285 <field name="stage_id" />
291 # ------------------------------------------------------
293 # ------------------------------------------------------
295 <record id="hr_job_survey" model="ir.ui.view">
296 <field name="name">hr.job.form1</field>
297 <field name="model">hr.job</field>
298 <field name="type">form</field>
299 <field name="inherit_id" ref="hr.view_hr_job_form"/>
300 <field name="arch" type="xml">
301 <field name="department_id" position="after">
302 <field name="survey_id"/>
307 <!-- Stage Tree View -->
309 <record model="ir.ui.view" id="hr_recruitment_stage_tree">
310 <field name="name">hr.recruitment.stage.tree</field>
311 <field name="model">hr.recruitment.stage</field>
312 <field name="type">tree</field>
313 <field name="arch" type="xml">
314 <tree string="Stages">
315 <field name="sequence" invisible="1"/>
317 <field name="department_id" groups="base.group_extended"/>
322 <!-- Stage Form View -->
324 <record model="ir.ui.view" id="hr_recruitment_stage_form">
325 <field name="name">hr.recruitment.stage.form</field>
326 <field name="model">hr.recruitment.stage</field>
327 <field name="type">form</field>
328 <field name="arch" type="xml">
329 <form string="Stage">
330 <group colspan="4" col="6">
331 <separator string="Stage Definition" colspan="6"/>
332 <field name="name" select="1"/>
333 <field name="department_id" groups="base.group_extended"/>
334 <field name="sequence"/>
336 <separator string="Requirements" colspan="4"/>
337 <field name="requirements" nolabel="1" colspan="4"/>
342 <!-- Stage Action -->
344 <record id="hr_recruitment_stage_act" model="ir.actions.act_window">
345 <field name="name">Stages</field>
346 <field name="res_model">hr.recruitment.stage</field>
347 <field name="view_type">form</field>
348 <field name="view_id" ref="hr_recruitment_stage_tree"/>
349 <field name="help"> Check if the following stages are matching your recruitment process. Don't forget to specify the department if your recruitment process is different according to the job position.</field>
353 id="menu_hr_recruitment_stage"
355 parent="menu_hr_recruitment_recruitment"
356 action="hr_recruitment_stage_act"
359 <!-- Degree Tree View -->
361 <record model="ir.ui.view" id="hr_recruitment_degree_tree">
362 <field name="name">hr.recruitment.degree.tree</field>
363 <field name="model">hr.recruitment.degree</field>
364 <field name="type">tree</field>
365 <field name="arch" type="xml">
366 <tree string="Degree">
367 <field name="sequence" invisible="1"/>
373 <!-- Degree Form View -->
375 <record model="ir.ui.view" id="hr_recruitment_degree_form">
376 <field name="name">hr.recruitment.degree.form</field>
377 <field name="model">hr.recruitment.degree</field>
378 <field name="type">form</field>
379 <field name="arch" type="xml">
380 <form string="Degree">
381 <field name="name" select="1"/>
382 <field name="sequence"/>
387 <!-- Degree Action -->
389 <record id="hr_recruitment_degree_action" model="ir.actions.act_window">
390 <field name="name">Degree</field>
391 <field name="res_model">hr.recruitment.degree</field>
392 <field name="view_type">form</field>
393 <field name="view_id" ref="hr_recruitment_degree_tree"/>
397 id="menu_hr_recruitment_degree"
399 parent="menu_hr_recruitment_recruitment"
400 action="hr_recruitment_degree_action"
403 <!-- Source Tree View -->
405 <record model="ir.ui.view" id="hr_recruitment_source_tree">
406 <field name="name">hr.recruitment.source.tree</field>
407 <field name="model">hr.recruitment.source</field>
408 <field name="type">tree</field>
409 <field name="arch" type="xml">
410 <tree string="Sources of Applicants">
415 <record model="ir.ui.view" id="hr_recruitment_source_form">
416 <field name="name">hr.recruitment.source.form</field>
417 <field name="model">hr.recruitment.source</field>
418 <field name="type">form</field>
419 <field name="arch" type="xml">
420 <form string="Sources of Applicants">
425 <record id="hr_recruitment_source_action" model="ir.actions.act_window">
426 <field name="name">Sources of Applicants</field>
427 <field name="res_model">hr.recruitment.source</field>
428 <field name="view_type">form</field>
432 id="menu_hr_recruitment_source"
433 parent="menu_hr_recruitment_recruitment"
434 action="hr_recruitment_source_action"