1 <?xml version="1.0" encoding="utf-8"?>
6 <menuitem name="Human Resources"
8 groups="base.group_hr_manager,base.group_hr_user,base.group_user"
10 <menuitem id="menu_hr_reporting" parent="base.menu_reporting" name="Human Resources" sequence="60" />
11 <menuitem id="menu_hr_main" parent="menu_hr_root" name="Human Resources" sequence="0"/>
12 <menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_user" sequence="50"/>
13 <menuitem id="menu_hr_configuration_employees" name="Employees" parent="hr.menu_hr_configuration" groups="base.group_hr_user" sequence="1"/>
14 <menuitem id="menu_hr_configuration_recruitment" name="Recruitment" parent="hr.menu_hr_configuration" groups="base.group_hr_user" sequence="2"/>
15 <menuitem id="menu_hr_configuration_timesheets_attendances" name="Timesheets & Attendances" parent="hr.menu_hr_configuration" groups="base.group_hr_user" sequence="3"/>
16 <menuitem id="menu_hr_configuration_expenses" name="Expenses" parent="hr.menu_hr_configuration" groups="base.group_hr_manager" sequence="4"/>
18 <menuitem id="menu_hr_reporting_timesheet" name="Reports"
19 parent="menu_hr_reporting" sequence="6"/>
21 <!--Employee form view -->
22 <record id="view_employee_form" model="ir.ui.view">
23 <field name="name">hr.employee.form</field>
24 <field name="model">hr.employee</field>
25 <field name="arch" type="xml">
26 <form string="Employee">
28 <field name="image_medium" widget='image' class="oe_left oe_avatar"/>
29 <div class="oe_title">
30 <label for="name" class="oe_edit_only"/>
34 <label for="category_ids" class="oe_edit_only" groups="base.group_hr_user"/>
35 <field name="category_ids" widget="many2many_tags" placeholder="e.g. Part Time" groups="base.group_hr_user"/>
36 <label for="work_email" class="oe_edit_only"/>
37 <field name="work_email" widget="email"/>
38 <label for="work_phone" class="oe_edit_only"/>
39 <field name="work_phone"/>
41 <div class="oe_right oe_button_box" name="button_box">
42 <!-- Put here related buttons -->
45 <page string="Public Information">
47 <group string="Contact Information">
48 <field name="address_id" on_change="onchange_address_id(address_id)"
49 context="{'show_address': 1}"
50 options='{"always_reload": True, "highlight_first_line": True}'/>
51 <field name="mobile_phone"/>
52 <field name="work_location"/>
54 <group string="Position">
55 <field name="department_id" on_change="onchange_department_id(department_id)"/>
56 <field name="job_id"/>
57 <field name="parent_id"/>
58 <field name="coach_id"/>
61 <field name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
62 <field name="user_id" on_change="onchange_user(user_id)" string="Related User"
63 context="{'default_groups_ref': ['base.group_user']}"/>
66 <field name="notes" placeholder="Other Information ..." colspan="4"/>
68 <page string="Personal Information" groups="base.group_hr_user">
70 <group string="Citizenship & Other Info">
71 <field name="country_id" options='{"no_open": True}'/>
72 <field name="identification_id" groups="base.group_hr_user"/>
73 <field name="passport_id" groups="base.group_hr_user"/>
74 <field name="bank_account_id"/>
75 <field name="otherid" groups="base.group_hr_user"/>
77 <group string="Contact Information">
78 <field name="address_home_id"
79 context="{'show_address': 1}"
80 options='{"always_reload": True, "highlight_first_line": True}'/>
82 <group string="Status">
83 <field name="gender"/>
84 <field name="marital"/>
86 <group string="Birth">
87 <field name="birthday"/>
91 <page string="HR Settings" groups="base.group_hr_user">
93 <group string="Active" name="active_group">
94 <field name="active"/>
100 <div class="oe_chatter">
101 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
102 <field name="message_ids" widget="mail_thread"/>
108 <record id="view_employee_tree" model="ir.ui.view">
109 <field name="name">hr.employee.tree</field>
110 <field name="model">hr.employee</field>
111 <field name="arch" type="xml">
112 <tree string="Employees" fonts="bold:message_unread==True">
114 <field name="work_phone"/>
115 <field name="work_email"/>
116 <field name="company_id" groups="base.group_multi_company"/>
117 <field name="department_id"/>
118 <field name="job_id"/>
119 <field name="parent_id"/>
120 <field name="coach_id" invisible="1"/>
121 <field name="message_unread" invisible="1"/>
126 <record id="view_employee_filter" model="ir.ui.view">
127 <field name="name">Employees</field>
128 <field name="model">hr.employee</field>
129 <field name="arch" type="xml">
130 <search string="Employees">
131 <field name="name" string="Employees" filter_domain="['|',('work_email','ilike',self),('name','ilike',self)]"/>
132 <field name="department_id" />
133 <field name="category_ids" groups="base.group_hr_user"/>
134 <field name="job_id" />
135 <filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
136 <group expand="0" string="Group By">
137 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
138 <filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
139 <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
140 <filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
141 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
146 <!-- HR Kanban View -->
148 <record model="ir.ui.view" id="hr_kanban_view_employees">
149 <field name="name">HR - Employess Kanban</field>
150 <field name="model">hr.employee</field>
151 <field name="priority">10</field>
152 <field name="arch" type="xml">
154 <field name="last_login"/>
155 <field name="message_is_follower"/>
156 <field name="message_follower_ids"/>
157 <field name="message_ids"/>
158 <field name="message_summary"/>
159 <field name="message_unread"/>
161 <t t-name="kanban-box">
162 <div class="oe_employee_details">
163 <div class="col-md-4">
164 <a type="open"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_image"/></a>
166 <div class="col-md-6">
168 <a type="open"><field name="name"/><t t-if="record.login.raw_value"> (<field name="login"/>)</t></a>
172 <span t-if="record.last_login.raw_value && record.last_login.raw_value.is().today()" class="oe_kanban_button" style="font-size: 100%%">
173 <t t-esc="moment(record.last_login.raw_value).format('LT')"/>
176 <li t-if="record.job_id.raw_value"><field name="job_id"/></li>
177 <li t-if="record.work_location.raw_value"><field name="work_location"/></li>
178 <li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
180 <div class="oe_kanban_footer_left">
181 <t t-raw="record.message_summary.raw_value"/>
182 <span title='Messages'><span class='oe_e'>9</span><t t-esc="record.message_ids.raw_value.length"/></span>
183 <span title='Followers'><span class='oe_e'>+</span><t t-esc="record.message_follower_ids.raw_value.length"/></span>
186 <div class="oe_followers" groups="base.group_user">
187 <button t-if="record.message_is_follower.raw_value" name="action_unfollow" type="object" class="oe_follower oe_following">
188 <span class="oe_unfollow">Unfollow</span>
189 <span class="oe_following">Following</span>
191 <button t-if="! record.message_is_follower.raw_value" name="action_follow" type="object" class="oe_follower oe_notfollow">Follow</button>
201 <record id="open_view_employee_tree" model="ir.actions.act_window">
202 <field name="name">Employees Structure</field>
203 <field name="res_model">hr.employee</field>
204 <field name="view_type">tree</field>
205 <field name="view_mode">tree,form</field>
206 <field name="view_id" ref="view_employee_tree"/>
207 <field name="domain">[('parent_id','=',False)]</field>
208 <field name="search_view_id" ref="view_employee_filter"/>
211 <record id="open_view_employee_list" model="ir.actions.act_window">
212 <field name="name">Employees</field>
213 <field name="res_model">hr.employee</field>
214 <field name="view_type">form</field>
215 <field name="view_mode">form,tree</field>
216 <field name="view_id" eval="False"/>
217 <field name="search_view_id" ref="view_employee_filter"/>
220 <record id="open_view_employee_list_my" model="ir.actions.act_window">
221 <field name="name">Employees</field>
222 <field name="res_model">hr.employee</field>
223 <field name="view_type">form</field>
224 <field name="view_mode">kanban,tree,form</field>
225 <field name="domain">[]</field>
226 <field name="context">{}</field>
227 <field name="view_id" eval="False"/>
228 <field name="search_view_id" ref="view_employee_filter"/>
229 <field name="help" type="html">
230 <p class="oe_view_nocontent_create">
231 Click to add a new employee.
233 With just a quick glance on the Odoo employee screen, you
234 can easily find all the information you need for each person;
235 contact data, job position, availability, etc.
240 <menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/>
242 <!-- Employee architecture -->
243 <record id="view_partner_tree2" model="ir.ui.view">
244 <field name="name">hr.employee.tree</field>
245 <field name="model">hr.employee</field>
246 <field name="field_parent">child_ids</field>
247 <field eval="20" name="priority"/>
248 <field name="arch" type="xml">
249 <tree string="Employees">
251 <field name="work_phone"/>
252 <field name="work_email"/>
253 <field name="company_id" groups="base.group_multi_company"/>
254 <field name="department_id"/>
255 <field name="job_id"/>
256 <field name="coach_id" invisible="1"/>
257 <field name="parent_id" invisible="1"/>
262 <record id="action2" model="ir.actions.act_window">
263 <field name="name">Subordinate Hierarchy</field>
264 <field name="type">ir.actions.act_window</field>
265 <field name="res_model">hr.employee</field>
266 <field name="domain">[('id','in',active_ids)]</field>
267 <field name="view_type">tree</field>
268 <field name="view_id" ref="view_partner_tree2"/>
272 <field eval="'action'" name="key"/>
273 <field eval="'client_action_multi'" name="key2"/>
274 <field eval="['hr.employee']" name="models"/>
275 <field name="name">Subordinate Hierarchy</field>
276 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
277 <field eval="True" name="isobject"/>
278 <field eval="True" name="replace"/>
281 <!-- Employee Category -->
282 <record id="view_employee_category_form" model="ir.ui.view">
283 <field name="name">hr.employee.category.form</field>
284 <field name="model">hr.employee.category</field>
285 <field name="arch" type="xml">
286 <form string="Employee Category">
289 <field name="parent_id"/>
295 <record id="view_employee_category_list" model="ir.ui.view">
296 <field name="name">hr.employee.category.list</field>
297 <field name="model">hr.employee.category</field>
298 <field eval="8" name="priority"/>
299 <field name="arch" type="xml">
300 <tree string="Employees Categories">
301 <field name="complete_name"/>
306 <record id="view_employee_category_tree" model="ir.ui.view">
307 <field name="name">hr.employee.category.tree</field>
308 <field name="model">hr.employee.category</field>
309 <field name="field_parent">child_ids</field>
310 <field name="arch" type="xml">
311 <tree string="Employees Categories">
317 <record id="open_view_categ_form" model="ir.actions.act_window">
318 <field name="name">Employee Tags</field>
319 <field name="res_model">hr.employee.category</field>
320 <field name="view_type">form</field>
321 <field name="view_mode">tree,form</field>
324 <menuitem action="open_view_categ_form" id="menu_view_employee_category_form"
325 parent="hr.menu_hr_configuration_employees" sequence="1" groups="base.group_no_one,base.group_hr_manager"/>
327 <record id="hr_employee_normal_action_tree" model="ir.actions.act_window">
328 <field name="name">Employees</field>
329 <field name="type">ir.actions.act_window</field>
330 <field name="res_model">hr.employee</field>
331 <field name="view_type">form</field>
332 <field name="view_mode">tree,form</field>
333 <field name="domain">[('category_ids','=', active_ids)]</field>
336 <record id="hr_employee_category_open" model="ir.values">
337 <field eval="'tree_but_open'" name="key2"/>
338 <field eval="'hr.employee.category'" name="model"/>
339 <field name="name">Employees by Categories</field>
340 <field eval="'ir.actions.act_window,%d'%hr_employee_normal_action_tree" name="value"/>
344 <record id="view_hr_job_form" model="ir.ui.view">
345 <field name="name">hr.job.form</field>
346 <field name="model">hr.job</field>
347 <field name="arch" type="xml">
350 <button name="set_recruit" string="Launch Recruitment" states="open" type="object" class="oe_highlight" groups="base.group_user"/>
351 <button name="set_open" string="Stop Recruitment" states="recruit" type="object" class="oe_highlight" groups="base.group_user"/>
352 <field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
355 <div class="oe_title">
356 <label for="name" class="oe_edit_only"/>
357 <h1><field name="name" class="oe_inline"/></h1>
359 <div class="oe_right" name="buttons"/>
360 <group name="employee_data">
361 <field name="department_id" class="oe_inline"/>
362 <field name="no_of_recruitment" class="oe_inline" />
365 <div attrs="{'invisible': [('state', '!=', 'recruit')]}">
366 <label for="description"/>
367 <field name="description"/>
369 <div attrs="{'invisible': [('state', '!=', 'recruit')]}">
370 <label for="requirements"/>
371 <field name="requirements"/>
374 <div class="oe_chatter">
375 <field name="message_follower_ids" widget="mail_followers"/>
376 <field name="message_ids" widget="mail_thread"/>
382 <record id="view_hr_job_tree" model="ir.ui.view">
383 <field name="name">hr.job.tree</field>
384 <field name="model">hr.job</field>
385 <field name="arch" type="xml">
386 <tree string="Job" fonts="bold:message_unread==True">
388 <field name="department_id"/>
389 <field name="no_of_employee"/>
390 <field name="no_of_recruitment"/>
391 <field name="expected_employees"/>
392 <field name="no_of_hired_employee"/>
393 <field name="state"/>
394 <field name="message_unread" invisible="1"/>
399 <record id="view_job_filter" model="ir.ui.view">
400 <field name="name">Job</field>
401 <field name="model">hr.job</field>
402 <field name="arch" type="xml">
403 <search string="Jobs">
404 <field name="name" string="Job"/>
405 <filter domain="[('state','=','open')]" string="In Position"/>
406 <filter domain="[('state','=','recruit')]" string="In Recruitment" name="in_recruitment"/>
407 <field name="department_id"/>
409 <filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
410 <group expand="0" string="Group By">
411 <filter string="Department" domain="[]" context="{'group_by':'department_id'}"/>
412 <filter string="Status" domain="[]" context="{'group_by':'state'}"/>
413 <filter string="Company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
419 <record model="ir.actions.act_window" id="action_hr_job">
420 <field name="name">Job Positions</field>
421 <field name="res_model">hr.job</field>
422 <field name="view_type">form</field>
423 <field name="view_mode">tree,form</field>
424 <field name="search_view_id" ref="view_job_filter"/>
425 <field name="context">{"search_default_Current":1}</field>
426 <field name="help" type="html">
427 <p class="oe_view_nocontent_create">
428 Click to define a new job position.
430 Job Positions are used to define jobs and their requirements.
431 You can keep track of the number of employees you have per job
432 position and follow the evolution according to what you planned
435 You can attach a survey to a job position. It will be used in
436 the recruitment process to evaluate the applicants for this job
442 <menuitem name="Recruitment" id="base.menu_crm_case_job_req_main" parent="menu_hr_root" groups="base.group_hr_user"/>
444 <!-- hr.department -->
445 <record id="view_department_form" model="ir.ui.view">
446 <field name="name">hr.department.form</field>
447 <field name="model">hr.department</field>
448 <field name="arch" type="xml">
449 <form string="department">
453 <field name="manager_id"/>
454 <field name="parent_id"/>
455 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
458 <div class="oe_chatter">
459 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
460 <field name="message_ids" widget="mail_thread"/>
465 <record id="view_department_tree" model="ir.ui.view">
466 <field name="name">hr.department.tree</field>
467 <field name="model">hr.department</field>
468 <field name="field_parent">child_ids</field>
469 <field name="arch" type="xml">
470 <tree string="Companies">
471 <field name="complete_name"/>
472 <field name="company_id" groups="base.group_multi_company"/>
473 <field name="manager_id"/>
477 <record id="view_department_filter" model="ir.ui.view">
478 <field name="name">Departments</field>
479 <field name="model">hr.department</field>
480 <field name="arch" type="xml">
481 <search string="Departments">
482 <field name="name" string="Department"/>
483 <field name="manager_id" />
484 <filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
488 <record id="open_module_tree_department" model="ir.actions.act_window">
489 <field name="name">Departments</field>
490 <field name="res_model">hr.department</field>
491 <field name="view_type">form</field>
492 <field name="search_view_id" ref="view_department_filter"/>
493 <field name="help" type="html">
494 <p class="oe_view_nocontent_create">
495 Click to create a department.
497 Odoo's department structure is used to manage all documents
498 related to employees by departments: expenses, timesheets,
499 leaves and holidays, recruitments, etc.
503 <menuitem action="open_module_tree_department" id="menu_hr_department_tree" parent="hr.menu_hr_configuration_employees" sequence="2" groups="base.group_hr_manager,base.group_hr_user"/>