| 1 |
<?xml version="1.0"?> |
| 2 |
<odoo> |
| 3 |
<record model="ir.ui.view" id="crm_case_tree_view_job"> |
| 4 |
<field name="name">Applicants</field> |
| 5 |
<field name="model">hr.applicant</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<list string="Applicants" class="o_search_matching_applicant" multi_edit="1" sample="1" decoration-danger="application_status == 'refused'" default_order="stage_id"> |
| 8 |
<header> |
| 9 |
<button |
| 10 |
name="action_job_add_applicants" |
| 11 |
string="Create Applications" |
| 12 |
invisible="context.get('default_job_id') or context.get('no_create_application_button')" |
| 13 |
type="object" |
| 14 |
/> |
| 15 |
<button |
| 16 |
name="action_talent_pool_add_applicants" |
| 17 |
type="object" |
| 18 |
class="btn-primary" |
| 19 |
string="Add Applicants " |
| 20 |
display="always" |
| 21 |
invisible="not context.get('default_talent_pool_ids')" |
| 22 |
groups="hr_recruitment.group_hr_recruitment_user" |
| 23 |
/> |
| 24 |
<button type="object" |
| 25 |
name="archive_applicant" |
| 26 |
string="Refuse" class="btn btn-secondary" |
| 27 |
/> |
| 28 |
</header> |
| 29 |
<field name="message_needaction" column_invisible="True"/> |
| 30 |
<field name="last_stage_id" column_invisible="True"/> |
| 31 |
<field name="date_last_stage_update" column_invisible="True"/> |
| 32 |
<field name="partner_name" string="Name" readonly="1" optional="show"/> |
| 33 |
<field name="create_date" readonly="1" optional="show" options="{'show_time': False}"/> |
| 34 |
<field name="email_from" readonly="1" optional="hide"/> |
| 35 |
<field name="partner_phone" widget="phone" readonly="1" optional="hide"/> |
| 36 |
<field name="job_id" optional="show" column_invisible="context.get('default_talent_pool_ids')"/> |
| 37 |
<field name="stage_id" widget="badge_rotting" optional="show" column_invisible="context.get('default_talent_pool_ids')" options="{'no_open': True}"/> |
| 38 |
<field name="priority" widget="priority" nolabel="1" optional="show"/> |
| 39 |
<field name="categ_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="show"/> |
| 40 |
<field name="user_id" widget="many2one_avatar_user" optional="show"/> |
| 41 |
<field name="is_rotting" column_invisible="True"/> |
| 42 |
<field name="rotting_days" column_invisible="True"/> |
| 43 |
<field name="type_id" column_invisible="True"/> |
| 44 |
<field name="application_status" optional="hide" invisible="application_status == 'ongoing'"/> |
| 45 |
<field name="refuse_reason_id" optional='hide'/> |
| 46 |
<field name="activity_ids" widget="list_activity" optional="hide"/> |
| 47 |
<field name="activity_date_deadline" optional="hide"/> |
| 48 |
<field name="interviewer_ids" widget="many2many_avatar_user" optional="hide"/> |
| 49 |
<field name="medium_id" optional="hide"/> |
| 50 |
<field name="source_id" readonly="1" optional="hide"/> |
| 51 |
<field name="salary_expected" optional="hide"/> |
| 52 |
<field name="salary_proposed" optional="hide"/> |
| 53 |
<field name="availability" optional="hide"/> |
| 54 |
<field name="department_id" readonly="1" column_invisible="context.get('invisible_department', True)" optional="hide"/> |
| 55 |
<field name="company_id" column_invisible="True"/> |
| 56 |
<field name="company_id" groups="base.group_multi_company" readonly="1" optional="hide"/> |
| 57 |
</list> |
| 58 |
</field> |
| 59 |
</record> |
| 60 |
|
| 61 |
<record id="hr_applicant_view_tree_activity" model="ir.ui.view"> |
| 62 |
<field name="name">hr.applicant.view.list.activity</field> |
| 63 |
<field name="model">hr.applicant</field> |
| 64 |
<field name="arch" type="xml"> |
| 65 |
<list string="Next Activities" decoration-danger="activity_date_deadline < current_date" default_order="activity_date_deadline"> |
| 66 |
<field name="partner_id"/> |
| 67 |
<field name="activity_date_deadline"/> |
| 68 |
<field name="activity_type_id"/> |
| 69 |
<field name="activity_summary"/> |
| 70 |
<field name="stage_id"/> |
| 71 |
<field name="activity_exception_decoration" widget="activity_exception"/> |
| 72 |
</list> |
| 73 |
</field> |
| 74 |
</record> |
| 75 |
|
| 76 |
<record model="ir.ui.view" id="hr_applicant_view_form"> |
| 77 |
<field name="name">Jobs - Recruitment Form</field> |
| 78 |
<field name="model">hr.applicant</field> |
| 79 |
<field name="arch" type="xml"> |
| 80 |
<form string="Jobs - Recruitment Form" class="o_applicant_form"> |
| 81 |
<field name="company_id" invisible="1"/> |
| 82 |
<field name="application_status" invisible="1"/> |
| 83 |
<field name="employee_id" invisible="1"/> |
| 84 |
<field name="meeting_ids" invisible="1"/> |
| 85 |
<field name="refuse_reason_id" invisible="1"/> |
| 86 |
<field name="email_normalized" invisible="1"/> |
| 87 |
<field name="partner_phone_sanitized" invisible="1"/> |
| 88 |
<field name="emp_is_active" invisible="1"/> |
| 89 |
<field name="is_rotting" invisible="1"/> |
| 90 |
<field name="rotting_days" invisible="1"/> |
| 91 |
<header> |
| 92 |
<button string="Create Employee" name="create_employee_from_applicant" type="object" data-hotkey="q" groups="hr.group_hr_user" |
| 93 |
class="o_create_employee" invisible="employee_id or not active or not date_closed"/> |
| 94 |
<button string="Refuse" name="archive_applicant" type="object" invisible="not active or is_pool_applicant" data-hotkey="d"/> |
| 95 |
<button string="Restore" name="action_unarchive" type="object" invisible="active" data-hotkey="x"/> |
| 96 |
<field name="stage_id" widget="rotting_statusbar_duration" options="{'clickable': '1'}" invisible="(not active and not employee_id) or is_pool_applicant"/> |
| 97 |
<button string="Create Applications" name="action_job_add_applicants" type="object" invisible="not is_pool_applicant"/> |
| 98 |
<button string="Add to Pool" name="action_talent_pool_add_applicants" type="object" invisible="is_pool_applicant or is_applicant_in_pool"/> |
| 99 |
</header> |
| 100 |
<sheet> |
| 101 |
<div class="oe_button_box" name="button_box"> |
| 102 |
<button name="action_open_employee" |
| 103 |
type="object" |
| 104 |
class="oe_stat_button" |
| 105 |
icon="fa-id-card-o" |
| 106 |
groups="hr.group_hr_user" |
| 107 |
invisible="not (employee_id or emp_is_active)"> |
| 108 |
<div class="o_field_widget o_stat_info"> |
| 109 |
<span class="o_stat_value"><field name="employee_name" readonly="1"/></span> |
| 110 |
<span class="o_stat_text">Employee</span> |
| 111 |
</div> |
| 112 |
</button> |
| 113 |
<button name="action_open_applications" |
| 114 |
class="oe_stat_button" |
| 115 |
icon="fa-pencil" |
| 116 |
type="object" |
| 117 |
context="{'active_test': False}" |
| 118 |
invisible="not application_count or (application_count <= 1 and not is_pool_applicant)"> |
| 119 |
<field name="application_count" widget="statinfo" string="Applications"/> |
| 120 |
</button> |
| 121 |
<button name="action_create_meeting" class="oe_stat_button" icon="fa-calendar" type="object" invisible="not id"> |
| 122 |
<div class="o_field_widget o_stat_info"> |
| 123 |
<span class="o_stat_text"><field name="meeting_display_text" /></span> |
| 124 |
<span class="o_stat_value"><field name="meeting_display_date" readonly="1"/></span> |
| 125 |
</div> |
| 126 |
</button> |
| 127 |
<button |
| 128 |
name="action_talent_pool_stat_button" |
| 129 |
class="oe_stat_button" |
| 130 |
icon="fa-users" |
| 131 |
type="object" |
| 132 |
invisible="not id or is_pool_applicant or not is_applicant_in_pool" |
| 133 |
groups="hr_recruitment.group_hr_recruitment_user"> |
| 134 |
<field name="talent_pool_count" widget="statinfo" string="Talent Pools"/> |
| 135 |
</button> |
| 136 |
</div> |
| 137 |
<!-- Job pipe ribbons --> |
| 138 |
<widget name="web_ribbon" title="Refused" bg_color="text-bg-danger" invisible="application_status != 'refused'"/> |
| 139 |
<widget name="web_ribbon" title="Archived" bg_color="text-bg-secondary" invisible="application_status != 'archived'"/> |
| 140 |
<widget name="web_ribbon" title="Hired" invisible="application_status != 'hired'" /> |
| 141 |
<field name="active" invisible="1"/> |
| 142 |
<field name="legend_normal" invisible="1"/> |
| 143 |
<field name="legend_blocked" invisible="1"/> |
| 144 |
<field name="legend_waiting" invisible="1"/> |
| 145 |
<field name="legend_done" invisible="1"/> |
| 146 |
<field name="kanban_state" widget="hr_applicant_state_selection" invisible="application_status == 'refused' or application_status == 'archived' or is_pool_applicant" class="o_field_state_selection"/> |
| 147 |
<div class="oe_title pe-0"> |
| 148 |
<label for="partner_name" class="oe_edit_only" string="Applicant" invisible="is_pool_applicant"/> |
| 149 |
<label for="partner_name" class="oe_edit_only" string="Talent" invisible="not is_pool_applicant"/> |
| 150 |
<h1 class="d-flex justify-content-between align-items-center me-4"> |
| 151 |
<field name="partner_name" options="{'line_breaks': False}" context="{'default_company_id': company_id}" required="1"/> |
| 152 |
</h1> |
| 153 |
</div> |
| 154 |
<group> |
| 155 |
<group> |
| 156 |
<field name="partner_name" invisible="1"/> |
| 157 |
<field name="partner_id" invisible="1" /> |
| 158 |
<field name="refuse_reason_id" invisible="active"/> |
| 159 |
<field name="email_from" placeholder="e.g. [email protected]" widget="email"/> |
| 160 |
<field name="partner_phone" widget="phone"/> |
| 161 |
<field name="linkedin_profile" placeholder="e.g. https://www.linkedin.com/in/..." widget="url"/> |
| 162 |
</group> |
| 163 |
<group> |
| 164 |
<field name="priority" widget="priority"/> |
| 165 |
<field name="job_id" invisible="is_pool_applicant" placeholder="Spontaneous application"/> |
| 166 |
<field name="talent_pool_ids" widget="many2many_tags" options="{'color_field': 'color'}" invisible="not is_pool_applicant"/> |
| 167 |
<field name="user_id" widget="many2one_avatar_user" placeholder="Unassigned"/> |
| 168 |
<field name="interviewer_ids" options="{'no_create': True}" widget="many2many_avatar_user" invisible="is_pool_applicant" placeholder="Who can access applicants" /> |
| 169 |
<field name="date_closed" invisible="not date_closed" /> |
| 170 |
<field name="categ_ids" placeholder="e.g. Trainee" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/> |
| 171 |
</group> |
| 172 |
</group> |
| 173 |
<field name="applicant_properties" columns="2"/> |
| 174 |
<notebook> |
| 175 |
<page string="Note" name="application_note"> |
| 176 |
<field name="applicant_notes" type="html" options="{'collaborative': true, 'resizable': false}" placeholder="Add private notes about this applicant..."/> |
| 177 |
</page> |
| 178 |
<page string="Details" name="application_details"> |
| 179 |
<group> |
| 180 |
<group string="Applicant"> |
| 181 |
<field name="type_id" placeholder="e.g. Masters"/> |
| 182 |
<field name="availability" placeholder="Directly"/> |
| 183 |
</group> |
| 184 |
<group string="Job"> |
| 185 |
<field name="department_id"/> |
| 186 |
<field name="company_id" groups="base.group_multi_company" options='{"no_open":True}' placeholder="Visible to all"/> |
| 187 |
</group> |
| 188 |
</group> |
| 189 |
<group> |
| 190 |
<group string="Salary Package" name="recruitment_contract" groups="hr_recruitment.group_hr_recruitment_user"> |
| 191 |
<label for="salary_expected"/> |
| 192 |
<div class="o_row"> |
| 193 |
<field name="salary_expected" placeholder="Expected"/> |
| 194 |
<span invisible="not salary_expected_extra"> + </span> |
| 195 |
<field name="salary_expected_extra" placeholder="Other benefits"/> |
| 196 |
</div> |
| 197 |
<label for="salary_proposed"/> |
| 198 |
<div class="o_row"> |
| 199 |
<field name="salary_proposed"/> |
| 200 |
<span invisible="not salary_proposed_extra"> + </span> |
| 201 |
<field name="salary_proposed_extra" placeholder="Other benefits"/> |
| 202 |
</div> |
| 203 |
</group> |
| 204 |
<group string="Sourcing"> |
| 205 |
<field name="source_id" placeholder="Select where the applicant comes from"/> |
| 206 |
<field name="medium_id" placeholder="Select the way applicant found the offer"/> |
| 207 |
<field name="campaign_id" placeholder="Select the campaign the applicant was part of"/> |
| 208 |
</group> |
| 209 |
</group> |
| 210 |
</page> |
| 211 |
</notebook> |
| 212 |
</sheet> |
| 213 |
<div class="o_attachment_preview" groups="hr_recruitment.group_applicant_cv_display"/> |
| 214 |
<chatter open_attachments="True" reload_on_attachment="True"/> |
| 215 |
</form> |
| 216 |
</field> |
| 217 |
</record> |
| 218 |
|
| 219 |
<record id="hr_applicant_view_form_interviewer" model="ir.ui.view"> |
| 220 |
<field name="model">hr.applicant</field> |
| 221 |
<field name="inherit_id" ref="hr_applicant_view_form"/> |
| 222 |
<field name="priority">50</field> |
| 223 |
<field name="mode">primary</field> |
| 224 |
<field name="arch" type="xml"> |
| 225 |
<xpath expr="//form" position="attributes"> |
| 226 |
<attribute name="js_class">hr_recruitment_interviewer</attribute> |
| 227 |
<attribute name="class">o_applicant_form</attribute> |
| 228 |
</xpath> |
| 229 |
<xpath expr="//group[@name='recruitment_contract']" position="replace"/> |
| 230 |
</field> |
| 231 |
</record> |
| 232 |
|
| 233 |
<record model="ir.ui.view" id="crm_case_pivot_view_job"> |
| 234 |
<field name="name">Jobs - Recruitment</field> |
| 235 |
<field name="model">hr.applicant</field> |
| 236 |
<field name="arch" type="xml"> |
| 237 |
<pivot string="Job Applications" sample="1"> |
| 238 |
<field name="job_id" type="row"/> |
| 239 |
<field name="stage_id" type="col"/> |
| 240 |
<field name="color" invisible="1"/> |
| 241 |
</pivot> |
| 242 |
</field> |
| 243 |
</record> |
| 244 |
|
| 245 |
<record model="ir.ui.view" id="crm_case_graph_view_job"> |
| 246 |
<field name="name">Jobs - Recruitment Graph</field> |
| 247 |
<field name="model">hr.applicant</field> |
| 248 |
<field name="arch" type="xml"> |
| 249 |
<graph string="Cases By Stage and Estimates" sample="1"> |
| 250 |
<field name="stage_id"/> |
| 251 |
</graph> |
| 252 |
</field> |
| 253 |
</record> |
| 254 |
|
| 255 |
<record id="hr_applicant_view_search_bis" model="ir.ui.view"> |
| 256 |
<field name="name">hr.applicant.view.search</field> |
| 257 |
<field name="model">hr.applicant</field> |
| 258 |
<field name="arch" type="xml"> |
| 259 |
<search string="Search Applicants"> |
| 260 |
<field string="Applicant" name="partner_name" |
| 261 |
filter_domain="['|', ('partner_name', 'ilike', self), ('email_from', 'ilike', self)]"/> |
| 262 |
<field string="Email" name="email_from" filter_domain="[('email_from', 'ilike', self)]"/> |
| 263 |
<field name="job_id"/> |
| 264 |
<field name="department_id" operator="child_of"/> |
| 265 |
<field name="company_id" groups="base.group_multi_company"/> |
| 266 |
<field name="user_id"/> |
| 267 |
<field name="stage_id" domain="[]"/> |
| 268 |
<field name="categ_ids"/> |
| 269 |
<field name="refuse_reason_id"/> |
| 270 |
<field name="application_status"/> |
| 271 |
<field name="date_closed"/> |
| 272 |
<field name="activity_user_id" string="Activities of"/> |
| 273 |
<field name="activity_type_id" string="Activity type"/> |
| 274 |
<field name="attachment_ids" filter_domain="[('attachment_ids', 'any', [('index_content', 'ilike', self), ('res_model', '=', 'hr.applicant')])]" string="Resume's content"/> |
| 275 |
<filter string="My Applications" name="my_applications" domain="[('user_id', '=', uid)]"/> |
| 276 |
<filter string="Unassigned" name="unassigned" domain="[('user_id', '=', False)]"/> |
| 277 |
<separator/> |
| 278 |
<filter string="Applicants" name="applicants" domain="[('talent_pool_ids', '=', False)]"/> |
| 279 |
<filter string="Talents" name="talents" domain="[('talent_pool_ids', '!=', False)]"/> |
| 280 |
<separator/> |
| 281 |
<filter string="In Progress" name="ongoing" domain="[('date_closed', '=', False), ('active', '=', True), ('refuse_reason_id', '=', False)]"/> |
| 282 |
<filter string="Hired" name="hired" domain="[('date_closed', '!=', False)]"/> |
| 283 |
<separator/> |
| 284 |
<filter string="Ready for Next Stage" name="done" domain="[('kanban_state', '=', 'done')]"/> |
| 285 |
<filter string="Waiting" name="waiting" domain="[('kanban_state', '=', 'waiting')]"/> |
| 286 |
<filter string="Blocked" name="blocked" domain="[('kanban_state', '=', 'blocked')]"/> |
| 287 |
<filter string="Rotting" name="filter_rotting" domain="[('is_rotting', '=', True)]"/> |
| 288 |
<separator/> |
| 289 |
<filter string="Directly Available" name="applicant_availability" domain="['|',('availability', '<=', 'today'),('availability','=', False)]"/> |
| 290 |
<separator/> |
| 291 |
<filter string="Creation Date" name="filter_create" date="create_date"/> |
| 292 |
<filter string="Last Stage Update" name="filter_date_last_stage_update" date="date_last_stage_update"/> |
| 293 |
<separator/> |
| 294 |
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction', '=', True)]" groups="mail.group_mail_notification_type_inbox"/> |
| 295 |
<separator/> |
| 296 |
<filter string="Archived" name="inactive" domain="[('active', '=', False), ('refuse_reason_id', '=', False)]"/> |
| 297 |
<filter string="Refused" name="refused" domain="[('active', '=', False), ('refuse_reason_id', '!=', False)]"/> |
| 298 |
<separator/> |
| 299 |
<filter invisible="1" string="My Activities" name="filter_activities_my" |
| 300 |
domain="[('activity_user_id', '=', uid)]"/> |
| 301 |
<separator invisible="1"/> |
| 302 |
<filter invisible="1" string="Late Activities" name="activities_overdue" |
| 303 |
domain="[('my_activity_date_deadline', '<', 'today')]" |
| 304 |
help="Show all records whose next activity date is past"/> |
| 305 |
<filter invisible="1" string="Today Activities" name="activities_today" |
| 306 |
domain="[('my_activity_date_deadline', '=', 'today')]"/> |
| 307 |
<filter invisible="1" string="Future Activities" name="activities_upcoming_all" |
| 308 |
domain="[('my_activity_date_deadline', '>', 'today')]"/> |
| 309 |
<separator/> |
| 310 |
<filter invisible="1" string="Running Applicants" name="running_applicant_activities" |
| 311 |
domain="[('stage_id.hired_stage', '=', False)]"/> |
| 312 |
<separator/> |
| 313 |
<group> |
| 314 |
<filter string="Job" name="job" domain="[]" context="{'group_by': 'job_id'}"/> |
| 315 |
<filter string="Stage" name="stage" domain="[]" context="{'group_by': 'stage_id'}"/> |
| 316 |
<filter string="Responsible" name="responsible" domain="[]" context="{'group_by': 'user_id'}"/> |
| 317 |
<filter string="Talent Pool" name="talent_pool" domain="[]" context="{'group_by': 'talent_pool_ids'}"/> |
| 318 |
<filter string="Creation Date" name="creation_date" context="{'group_by': 'create_date'}"/> |
| 319 |
<filter string="Hiring Date" name="hired_date" context="{'group_by': 'date_closed'}"/> |
| 320 |
<filter string="Last Stage Update" name="last_stage_update" context="{'group_by': 'date_last_stage_update'}"/> |
| 321 |
<filter string="Refuse Reason" name="refuse_reason_id" domain="[]" context="{'group_by': 'refuse_reason_id'}"/> |
| 322 |
<filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> |
| 323 |
<filter string="Properties" name="group_by_applicant_properties" context="{'group_by': 'applicant_properties'}"/> |
| 324 |
</group> |
| 325 |
</search> |
| 326 |
</field> |
| 327 |
</record> |
| 328 |
|
| 329 |
<record model="ir.ui.view" id="hr_applicant_calendar_view"> |
| 330 |
<field name="name">Hr Applicants Calendar</field> |
| 331 |
<field name="model">hr.applicant</field> |
| 332 |
<field name="priority" eval="2"/> |
| 333 |
<field name="arch" type="xml"> |
| 334 |
<calendar |
| 335 |
string="Applicants" |
| 336 |
mode="month" |
| 337 |
date_start="activity_date_deadline" |
| 338 |
color="user_id" |
| 339 |
event_limit="5" |
| 340 |
hide_time="true" |
| 341 |
quick_create="0" |
| 342 |
> |
| 343 |
<field name="partner_name"/> |
| 344 |
<field name="job_id"/> |
| 345 |
<field name="priority" widget="priority"/> |
| 346 |
<field name="user_id" filters="1" invisible="1"/> |
| 347 |
<field name="activity_summary"/> |
| 348 |
</calendar> |
| 349 |
</field> |
| 350 |
</record> |
| 351 |
|
| 352 |
<record id="quick_create_applicant_form" model="ir.ui.view"> |
| 353 |
<field name="name">hr.applicant.form.quick_create</field> |
| 354 |
<field name="model">hr.applicant</field> |
| 355 |
<field name="priority">1000</field> |
| 356 |
<field name="arch" type="xml"> |
| 357 |
<form> |
| 358 |
<group> |
| 359 |
<field name="partner_name" options="{'no_create_edit': True}" placeholder="e.g. John Doe"/> |
| 360 |
<field name="job_id" options="{'no_open': True}"/> |
| 361 |
<field name="company_id" invisible="1"/> |
| 362 |
</group> |
| 363 |
</form> |
| 364 |
</field> |
| 365 |
</record> |
| 366 |
|
| 367 |
<!-- Hr Applicant Kanban View --> |
| 368 |
<record model="ir.ui.view" id="hr_kanban_view_applicant"> |
| 369 |
<field name="name">Hr Applicants kanban</field> |
| 370 |
<field name="model">hr.applicant</field> |
| 371 |
<field name="arch" type="xml"> |
| 372 |
<kanban highlight_color="color" default_group_by="stage_id" class="o_kanban_applicant o_search_matching_applicant" quick_create_view="hr_recruitment.quick_create_applicant_form" sample="1" |
| 373 |
js_class="rotting_kanban"> |
| 374 |
<header> |
| 375 |
<button |
| 376 |
name="action_talent_pool_add_applicants" |
| 377 |
type="object" |
| 378 |
class="btn-primary" |
| 379 |
string="Add Applicants " |
| 380 |
display="always" |
| 381 |
invisible="not context.get('default_talent_pool_ids')" |
| 382 |
groups="hr_recruitment.group_hr_recruitment_user" |
| 383 |
/> |
| 384 |
</header> |
| 385 |
<field name="stage_id" options='{"group_by_tooltip": {"requirements": "Requirements"}}'/> |
| 386 |
<field name="legend_normal"/> |
| 387 |
<field name="legend_blocked"/> |
| 388 |
<field name="legend_waiting"/> |
| 389 |
<field name="legend_done"/> |
| 390 |
<field name="date_closed"/> |
| 391 |
<field name="color"/> |
| 392 |
<field name="user_id"/> |
| 393 |
<field name="active"/> |
| 394 |
<field name="application_status" /> |
| 395 |
<field name="company_id" invisible="1"/> <!-- We need to keep this field as it is used in the domain of user_id in the model --> |
| 396 |
<progressbar field="kanban_state" colors='{"done": "success", "waiting": "warning", "blocked": "danger"}'/> |
| 397 |
<templates> |
| 398 |
<t t-name="menu"> |
| 399 |
<a role="menuitem" name="action_create_meeting" type="object" class="dropdown-item">Schedule Interview</a> |
| 400 |
<a role="menuitem" name="archive_applicant" type="object" class="dropdown-item">Refuse</a> |
| 401 |
<a t-if="record.active.raw_value" role="menuitem" type="archive" class="dropdown-item">Archive</a> |
| 402 |
<a t-if="!record.active.raw_value" role="menuitem" type="unarchive" class="dropdown-item">Unarchive</a> |
| 403 |
<t t-if="widget.deletable"><a role="menuitem" type="delete" class="dropdown-item">Delete</a></t> |
| 404 |
<a role="menuitem" name="action_talent_pool_add_applicants" type="object" class="dropdown-item" |
| 405 |
invisible="is_pool_applicant or is_applicant_in_pool">Add to Pool</a> |
| 406 |
</t> |
| 407 |
<t t-name="card"> |
| 408 |
<widget name="web_ribbon" title="Hired" bg_color="text-bg-success" invisible="not date_closed"/> |
| 409 |
<widget name="web_ribbon" title="Refused" bg_color="text-bg-danger" invisible="application_status != 'refused'"/> |
| 410 |
<widget name="web_ribbon" title="Archived" bg_color="text-bg-secondary" invisible="application_status != 'archived'"/> |
| 411 |
<field t-if="record.partner_name.raw_value" class="fw-bold fs-5" name="partner_name"/> |
| 412 |
<field name="job_id" invisible="context.get('search_default_job_id', False) or is_pool_applicant"/> |
| 413 |
<field name="categ_ids" widget="many2many_tags" options="{'color_field': 'color'}"/> |
| 414 |
<field name="applicant_properties" widget="properties"/> |
| 415 |
<footer> |
| 416 |
<field name="priority" widget="priority"/> |
| 417 |
<field class="ms-1 align-items-center" name="activity_ids" widget="kanban_activity"/> |
| 418 |
<field name="is_rotting" invisible="1"/> |
| 419 |
<field name="rotting_days" class="d-flex" widget="rotting"/> |
| 420 |
<div class="d-flex ms-auto align-items-center"> |
| 421 |
<a name="action_open_attachments" type="object"> |
| 422 |
<i class='fa fa-paperclip' role="img" aria-label="Documents"/> |
| 423 |
<field name="attachment_number"/> |
| 424 |
</a> |
| 425 |
<field name="kanban_state" class="mx-1" widget="hr_applicant_state_selection"/> |
| 426 |
<field name="user_id" widget="many2one_avatar_user"/> |
| 427 |
</div> |
| 428 |
</footer> |
| 429 |
</t> |
| 430 |
</templates> |
| 431 |
</kanban> |
| 432 |
</field> |
| 433 |
</record> |
| 434 |
|
| 435 |
<record id="hr_applicant_view_activity" model="ir.ui.view"> |
| 436 |
<field name="name">hr.applicant.activity</field> |
| 437 |
<field name="model">hr.applicant</field> |
| 438 |
<field name="arch" type="xml"> |
| 439 |
<activity string="Applicants"> |
| 440 |
<templates> |
| 441 |
<div t-name="activity-box" class="o_hr_applicant_view_activity"> |
| 442 |
<field name="user_id" widget="many2one_avatar_user"/> |
| 443 |
<div class="flex-grow-1 ms-1"> |
| 444 |
<field name="partner_name" muted="1" display="full" class="o_text_block"/> |
| 445 |
</div> |
| 446 |
</div> |
| 447 |
</templates> |
| 448 |
</activity> |
| 449 |
</field> |
| 450 |
</record> |
| 451 |
|
| 452 |
<record model="ir.actions.act_window" id="action_hr_job_applications"> |
| 453 |
<field name="name">Applications</field> |
| 454 |
<field name="res_model">hr.applicant</field> |
| 455 |
<field name="view_mode">kanban,list,form,graph,calendar,pivot,activity</field> |
| 456 |
<field name="search_view_id" ref="hr_applicant_view_search_bis"/> |
| 457 |
<field name="context">{ |
| 458 |
'search_default_job_id': [active_id], |
| 459 |
'search_default_applicants': 1, |
| 460 |
'default_job_id': active_id, |
| 461 |
'dialog_size':'medium', |
| 462 |
'allow_search_matching_applicants': 1 |
| 463 |
}</field> |
| 464 |
<field name="help" type="html"> |
| 465 |
<p class="o_view_nocontent_empty_folder"> |
| 466 |
No applications yet |
| 467 |
</p><p> |
| 468 |
Odoo helps you track applicants in the recruitment |
| 469 |
process and follow up all operations: meetings, interviews, etc. |
| 470 |
</p><p> |
| 471 |
Applicants and their attached résumé are created automatically when an email is sent. |
| 472 |
If you install the document management modules, all resumes are indexed automatically, |
| 473 |
so that you can easily search through their content. |
| 474 |
</p> |
| 475 |
</field> |
| 476 |
</record> |
| 477 |
|
| 478 |
<record id="hr_kanban_view_applicant_talent_pool" model="ir.ui.view"> |
| 479 |
<field name="model">hr.applicant</field> |
| 480 |
<field name="inherit_id" ref="hr_recruitment.hr_kanban_view_applicant"/> |
| 481 |
<field name="mode">primary</field> |
| 482 |
<field name="arch" type="xml"> |
| 483 |
<xpath expr="//kanban" position="attributes"> |
| 484 |
<attribute name="default_group_by"></attribute> |
| 485 |
</xpath> |
| 486 |
</field> |
| 487 |
</record> |
| 488 |
|
| 489 |
<record id="action_hr_talent_pool_applications" model="ir.actions.act_window"> |
| 490 |
<field name="name">Talents</field> |
| 491 |
<field name="res_model">hr.applicant</field> |
| 492 |
<field name="domain">[ |
| 493 |
('talent_pool_ids', '=', active_ids), |
| 494 |
]</field> |
| 495 |
<field name="view_mode">list,kanban,form,graph,calendar,pivot,activity</field> |
| 496 |
<field name="view_ids" eval="[ |
| 497 |
(5, 0, 0), |
| 498 |
(0, 0, {'view_mode': 'list'}), |
| 499 |
(0, 0, {'view_mode': 'kanban', 'view_id': ref('hr_kanban_view_applicant_talent_pool')})]"/> |
| 500 |
<field name="context">{'default_talent_pool_ids': active_ids}</field> |
| 501 |
<field name="help" type="html"> |
| 502 |
<p class="o_view_nocontent_empty_folder"> |
| 503 |
No Talents in the pool yet |
| 504 |
</p> |
| 505 |
<p> |
| 506 |
Try adding some to the pool |
| 507 |
</p> |
| 508 |
</field> |
| 509 |
</record> |
| 510 |
|
| 511 |
<record model="ir.actions.act_window" id="action_hr_applicant_new"> |
| 512 |
<field name="res_model">hr.applicant</field> |
| 513 |
<field name="view_mode">form</field> |
| 514 |
<field name="context">{'default_job_id': active_id}</field> |
| 515 |
</record> |
| 516 |
|
| 517 |
<!-- Job Opportunities (menu) --> |
| 518 |
<record model="ir.actions.act_window" id="crm_case_categ0_act_job"> |
| 519 |
<field name="name">Applications</field> |
| 520 |
<field name="res_model">hr.applicant</field> |
| 521 |
<field name="path">recruitment-applications</field> |
| 522 |
<field name="view_mode">kanban,list,form,pivot,graph,calendar,activity</field> |
| 523 |
<field name="view_id" eval="False"/> |
| 524 |
<field name="search_view_id" ref="hr_applicant_view_search_bis"/> |
| 525 |
<field name="context">{'search_default_applicants': 1}</field> |
| 526 |
<field name="help" type="html"> |
| 527 |
<p class="o_view_nocontent_empty_folder"> |
| 528 |
No applications yet |
| 529 |
</p><p> |
| 530 |
Odoo helps you track applicants in the recruitment |
| 531 |
process and follow up all operations: meetings, interviews, etc. |
| 532 |
</p><p> |
| 533 |
Applicants and their attached résumé are created automatically when an email is sent. |
| 534 |
If you install the document management modules, all resumes are indexed automatically, |
| 535 |
so that you can easily search through their content. |
| 536 |
</p> |
| 537 |
</field> |
| 538 |
</record> |
| 539 |
|
| 540 |
<record id="hr_applicant_action_from_department" model="ir.actions.act_window"> |
| 541 |
<field name="name">New Applications</field> |
| 542 |
<field name="res_model">hr.applicant</field> |
| 543 |
<field name="view_mode">list,kanban,form,graph,calendar,pivot</field> |
| 544 |
<field name="context">{ |
| 545 |
'search_default_department_id': active_id, |
| 546 |
'default_department_id': active_id, |
| 547 |
'invisible_department': False} |
| 548 |
</field> |
| 549 |
<field name="domain">[('stage_id.sequence','<=','1')]</field> |
| 550 |
</record> |
| 551 |
|
| 552 |
<record model="ir.actions.act_window.view" id="action_hr_sec_kanban_view_act_job"> |
| 553 |
<field name="sequence" eval="1"/> |
| 554 |
<field name="view_mode">kanban</field> |
| 555 |
<field name="view_id" ref="hr_kanban_view_applicant"/> |
| 556 |
<field name="act_window_id" ref="crm_case_categ0_act_job"/> |
| 557 |
</record> |
| 558 |
|
| 559 |
<record model="ir.actions.act_window.view" id="action_hr_sec_tree_view_act_job"> |
| 560 |
<field name="sequence" eval="0"/> |
| 561 |
<field name="view_mode">list</field> |
| 562 |
<field name="view_id" ref="crm_case_tree_view_job"/> |
| 563 |
<field name="act_window_id" ref="crm_case_categ0_act_job"/> |
| 564 |
</record> |
| 565 |
|
| 566 |
<record model="ir.actions.act_window.view" id="action_hr_sec_form_view_act_job"> |
| 567 |
<field name="sequence" eval="2"/> |
| 568 |
<field name="view_mode">form</field> |
| 569 |
<field name="view_id" ref="hr_applicant_view_form"/> |
| 570 |
<field name="act_window_id" ref="crm_case_categ0_act_job"/> |
| 571 |
</record> |
| 572 |
|
| 573 |
<record id="hr_applicant_action_view_pivot" model="ir.actions.act_window.view"> |
| 574 |
<field name="sequence" eval="3"/> |
| 575 |
<field name="view_mode">pivot</field> |
| 576 |
<field name="view_id" ref="crm_case_pivot_view_job"/> |
| 577 |
<field name="act_window_id" ref="crm_case_categ0_act_job"/> |
| 578 |
</record> |
| 579 |
|
| 580 |
<record id="action_hr_sec_graph_view_act_job" model="ir.actions.act_window.view"> |
| 581 |
<field name="sequence" eval="4"/> |
| 582 |
<field name="view_mode">graph</field> |
| 583 |
<field name="view_id" ref="crm_case_graph_view_job"/> |
| 584 |
<field name="act_window_id" ref="crm_case_categ0_act_job"/> |
| 585 |
</record> |
| 586 |
|
| 587 |
<record id="hr_applicant_view_pivot" model="ir.ui.view"> |
| 588 |
<field name="name">hr.applicant.pivot</field> |
| 589 |
<field name="model">hr.applicant</field> |
| 590 |
<field name="arch" type="xml"> |
| 591 |
<pivot string="Recruitment Analysis" sample="1"> |
| 592 |
<field name="stage_id" type="row"/> |
| 593 |
<field name="job_id" type="col"/> |
| 594 |
<field name="partner_name"/> |
| 595 |
</pivot> |
| 596 |
</field> |
| 597 |
</record> |
| 598 |
|
| 599 |
<record id="hr_applicant_view_graph" model="ir.ui.view"> |
| 600 |
<field name="name">hr.applicant.graph</field> |
| 601 |
<field name="model">hr.applicant</field> |
| 602 |
<field name="arch" type="xml"> |
| 603 |
<graph string="Recruitment Analysis" sample="1"> |
| 604 |
<field name="stage_id"/> |
| 605 |
<field name="job_id"/> |
| 606 |
</graph> |
| 607 |
</field> |
| 608 |
</record> |
| 609 |
|
| 610 |
<record id="hr_applicant_view_search" model="ir.ui.view"> |
| 611 |
<field name="name">hr.applicant.search</field> |
| 612 |
<field name="model">hr.applicant</field> |
| 613 |
<field name="priority">32</field> |
| 614 |
<field name="arch" type="xml"> |
| 615 |
<search string="Recruitment Analysis"> |
| 616 |
<field name="job_id"/> |
| 617 |
<field name="department_id" operator="child_of"/> |
| 618 |
<field name="user_id"/> |
| 619 |
<filter string="Creation Date" name="year" date="create_date" default_period="year"/> |
| 620 |
<separator/> |
| 621 |
<filter string="Unassigned" name="unassigned" domain="[('user_id', '=', False)]"/> |
| 622 |
<separator/> |
| 623 |
<filter string="New" name="new" domain="[('stage_id.sequence', '=', 1)]"/> |
| 624 |
<separator/> |
| 625 |
<filter string="Ongoing" name="ongoing" domain="[('active', '=', True)]"/> |
| 626 |
<filter string="Refused" name="refused" domain="[('active', '=', False)]"/> |
| 627 |
<separator/> |
| 628 |
<filter string="Archived" name="archived" domain="[('active', '=', False)]"/> |
| 629 |
<separator/> |
| 630 |
<group> |
| 631 |
<field name="priority"/> |
| 632 |
<field name="stage_id"/> |
| 633 |
<field name="company_id" groups="base.group_multi_company"/> |
| 634 |
<field name="create_date"/> |
| 635 |
<field name="date_closed"/> |
| 636 |
</group> |
| 637 |
<group> |
| 638 |
<filter string="Responsible" name='User' context="{'group_by':'user_id'}"/> |
| 639 |
<filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/> |
| 640 |
<filter string="Jobs" name="job" context="{'group_by':'job_id'}"/> |
| 641 |
<filter string="Department" name="department" context="{'group_by':'department_id'}"/> |
| 642 |
<filter string="Tags" name="group_by_categ_ids" context="{'group_by':'categ_ids'}"/> |
| 643 |
<filter string="Stage" name="stage" context="{'group_by':'stage_id'}" /> |
| 644 |
<separator/> |
| 645 |
<filter string="Creation Date" name="creation_month" context="{'group_by':'create_date:month'}" help="Creation Date"/> |
| 646 |
</group> |
| 647 |
</search> |
| 648 |
</field> |
| 649 |
</record> |
| 650 |
|
| 651 |
<record id="hr_applicant_action_analysis" model="ir.actions.act_window"> |
| 652 |
<field name="name">Recruitment Analysis</field> |
| 653 |
<field name="res_model">hr.applicant</field> |
| 654 |
<field name="view_mode">graph,pivot</field> |
| 655 |
<field name="search_view_id" ref="hr_applicant_view_search"/> |
| 656 |
<field name="view_ids" eval="[ |
| 657 |
(5, 0, 0), |
| 658 |
(0, 0, {'view_mode': 'graph', 'view_id': ref('hr_applicant_view_graph')}), |
| 659 |
(0, 0, {'view_mode': 'pivot', 'view_id': ref('hr_applicant_view_pivot')})]"/> |
| 660 |
<field name="context">{'search_default_creation_month': 1, 'search_default_job': 2}</field> |
| 661 |
<field name="help" type="html"> |
| 662 |
<p class="o_view_nocontent_smiling_face"> |
| 663 |
No data yet! |
| 664 |
</p> |
| 665 |
</field> |
| 666 |
</record> |
| 667 |
|
| 668 |
<record id="action_hr_recruitment_report_filtered_department" model="ir.actions.act_window"> |
| 669 |
<field name="name">Recruitment Analysis</field> |
| 670 |
<field name="res_model">hr.applicant</field> |
| 671 |
<field name="view_mode">graph,pivot</field> |
| 672 |
<field name="search_view_id" ref="hr_applicant_view_search"/> |
| 673 |
<field name="context">{ |
| 674 |
'search_default_department_id': [active_id], |
| 675 |
'default_department_id': active_id} |
| 676 |
</field> |
| 677 |
<field name="help" type="html"> |
| 678 |
<p class="o_view_nocontent_smiling_face"> |
| 679 |
No data yet! |
| 680 |
</p> |
| 681 |
</field> |
| 682 |
</record> |
| 683 |
|
| 684 |
<record id="action_hr_recruitment_report_filtered_job" model="ir.actions.act_window"> |
| 685 |
<field name="name">Recruitment Analysis</field> |
| 686 |
<field name="res_model">hr.applicant</field> |
| 687 |
<field name="view_mode">graph,pivot</field> |
| 688 |
<field name="search_view_id" ref="hr_applicant_view_search"/> |
| 689 |
<field name="context">{ |
| 690 |
'search_default_creation_month': 1, |
| 691 |
'search_default_job_id': [active_id], |
| 692 |
'default_job_id': active_id} |
| 693 |
</field> |
| 694 |
<field name="help" type="html"> |
| 695 |
<p class="o_view_nocontent_smiling_face"> |
| 696 |
No data yet! |
| 697 |
</p> |
| 698 |
</field> |
| 699 |
</record> |
| 700 |
|
| 701 |
<record id="action_applicant_send_mail" model="ir.actions.server"> |
| 702 |
<field name="name">Send Email</field> |
| 703 |
<field name="model_id" ref="hr_recruitment.model_hr_applicant"/> |
| 704 |
<field name="sequence">1</field> |
| 705 |
<field name="binding_model_id" ref="hr_recruitment.model_hr_applicant"/> |
| 706 |
<field name="binding_view_types">list,kanban</field> |
| 707 |
<field name="state">code</field> |
| 708 |
<field name="code">action = records.action_send_email()</field> |
| 709 |
</record> |
| 710 |
|
| 711 |
<!-- Custom reports (aka filters) --> |
| 712 |
<record id="hr_applicant_filter_recruiter" model="ir.filters"> |
| 713 |
<field name="name">By Recruiter</field> |
| 714 |
<field name="model_id">hr.applicant</field> |
| 715 |
<field name="user_ids" eval="False"/> |
| 716 |
<field name="action_id" ref="hr_applicant_action_analysis"/> |
| 717 |
<field name="context">{'group_by': ['create_date:month', 'user_id']}</field> |
| 718 |
</record> |
| 719 |
<record id="hr_applicant_filter_job" model="ir.filters"> |
| 720 |
<field name="name">By Job</field> |
| 721 |
<field name="model_id">hr.applicant</field> |
| 722 |
<field name="user_ids" eval="False"/> |
| 723 |
<field name="action_id" ref="hr_applicant_action_analysis"/> |
| 724 |
<field name="context">{'group_by': ['create_date:month', 'job_id']}</field> |
| 725 |
</record> |
| 726 |
<record id="hr_applicant_filter_department" model="ir.filters"> |
| 727 |
<field name="name">By Department</field> |
| 728 |
<field name="model_id">hr.applicant</field> |
| 729 |
<field name="user_ids" eval="False"/> |
| 730 |
<field name="action_id" ref="hr_applicant_action_analysis"/> |
| 731 |
<field name="context">{'group_by': ['create_date:month', 'department_id']}</field> |
| 732 |
</record> |
| 733 |
|
| 734 |
<record id="mail_followers_edit_action_from_hr_recruitment" model="ir.actions.act_window"> |
| 735 |
<field name="name">Add/Remove Followers</field> |
| 736 |
<field name="res_model">mail.followers.edit</field> |
| 737 |
<field name="view_mode">form</field> |
| 738 |
<field name="target">new</field> |
| 739 |
<field name="context">{'default_res_model': 'hr.applicant', 'default_res_ids': active_ids}</field> |
| 740 |
<field name="binding_model_id" ref="hr_recruitment.model_hr_applicant"/> |
| 741 |
<field name="binding_view_types">list,kanban</field> |
| 742 |
</record> |
| 743 |
</odoo> |