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_main" parent="menu_hr_root" name="Human Resources" sequence="0"/>
11 <menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_manager" sequence="50"/>
12 <menuitem id="menu_hr_reporting_timesheet" name="Reports"
13 parent="menu_hr_reporting" sequence="6"/>
15 <!--Employee form view -->
16 <record id="view_employee_form" model="ir.ui.view">
17 <field name="name">hr.employee.form</field>
18 <field name="model">hr.employee</field>
19 <field name="arch" type="xml">
20 <form string="Employee" version="7.0">
22 <field name="image_medium" widget='image' class="oe_left oe_avatar"/>
23 <div class="oe_title">
24 <label for="name" class="oe_edit_only"/>
28 <label for="category_ids" class="oe_edit_only" groups="base.group_hr_user"/>
29 <field name="category_ids" widget="many2many_tags" placeholder="e.g. Part Time" groups="base.group_hr_user"/>
30 <label for="work_email" class="oe_edit_only"/>
31 <field name="work_email" widget="email"/>
32 <label for="work_phone" class="oe_edit_only"/>
33 <field name="work_phone"/>
35 <div class="oe_right oe_button_box" name="button_box">
36 <!-- Put here related buttons -->
39 <page string="Public Information">
41 <group string="Contact Information">
42 <field name="address_id" on_change="onchange_address_id(address_id)" context="{'show_address': 1}" options='{"always_reload": True, "highlight_first_line": True}'/>
43 <field name="mobile_phone"/>
44 <field name="work_location"/>
46 <group string="Position">
47 <field name="department_id" on_change="onchange_department_id(department_id)"/>
48 <field name="job_id"/>
49 <field name="parent_id"/>
50 <field name="coach_id"/>
53 <field name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
54 <field name="user_id" on_change="onchange_user(user_id)" string="Related User"
55 context="{'default_groups_ref': ['base.group_user']}"/>
58 <field name="notes" placeholder="Other Information ..." colspan="4"/>
60 <page string="Personal Information" groups="base.group_hr_user">
62 <group string="Citizenship & Other Info">
63 <field name="country_id" options='{"no_open": True}'/>
64 <field name="identification_id" groups="base.group_hr_user"/>
65 <field name="passport_id" groups="base.group_hr_user"/>
66 <field name="bank_account_id"/>
67 <field name="otherid" groups="base.group_hr_user"/>
69 <group string="Contact Information">
70 <field name="address_home_id" context="{'show_address': 1}" options='{"always_reload": True, "highlight_first_line": True}'/>
72 <group string="Status">
73 <field name="gender"/>
74 <field name="marital"/>
76 <group string="Birth">
77 <field name="birthday"/>
81 <page string="HR Settings" groups="base.group_hr_user">
83 <group string="Active" name="active_group">
84 <field name="active"/>
90 <div class="oe_chatter">
91 <field name="message_follower_ids" widget="mail_followers"/>
92 <field name="message_ids" widget="mail_thread"/>
98 <record id="view_employee_tree" model="ir.ui.view">
99 <field name="name">hr.employee.tree</field>
100 <field name="model">hr.employee</field>
101 <field name="arch" type="xml">
102 <tree string="Employees">
104 <field name="work_phone"/>
105 <field name="work_email"/>
106 <field name="company_id" groups="base.group_multi_company"/>
107 <field name="department_id"/>
108 <field name="job_id"/>
109 <field name="parent_id"/>
110 <field name="coach_id" invisible="1"/>
115 <record id="view_employee_filter" model="ir.ui.view">
116 <field name="name">Employees</field>
117 <field name="model">hr.employee</field>
118 <field name="arch" type="xml">
119 <search string="Employees">
120 <field name="name" string="Employees" filter_domain="['|',('work_email','ilike',self),('name','ilike',self)]"/>
121 <field name="department_id" />
122 <field name="category_ids" groups="base.group_hr_user"/>
123 <group expand="0" string="Group By...">
124 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
125 <filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
126 <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
127 <filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
128 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
133 <!-- HR Kanban View -->
135 <record model="ir.ui.view" id="hr_kanban_view_employees">
136 <field name="name">HR - Employess Kanban</field>
137 <field name="model">hr.employee</field>
138 <field name="priority">10</field>
139 <field name="arch" type="xml">
141 <field name="last_login"/>
142 <field name="message_is_follower"/>
143 <field name="message_follower_ids"/>
144 <field name="message_ids"/>
146 <t t-name="kanban-box">
147 <div class="oe_employee_vignette">
148 <div class="oe_employee_image">
149 <a type="open"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_picture"/></a>
151 <div class="oe_employee_details">
153 <a type="open"><field name="name"/><t t-if="record.login.raw_value"> (<field name="login"/>)</t></a>
157 <span t-if="record.last_login.raw_value && record.last_login.raw_value.is().today()" class="oe_kanban_button" style="font-size: 100%%">
158 <t t-esc="record.last_login.raw_value.toString('HH:mm')"/>
161 <li t-if="record.job_id.raw_value"><field name="job_id"/></li>
162 <li t-if="record.work_location.raw_value"><field name="work_location"/></li>
163 <li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
165 <div class="oe_kanban_footer_left">
166 <span title='Messages'><span class='oe_e'>9</span><t t-esc="record.message_ids.raw_value.length"/></span>
167 <span title='Followers'><span class='oe_e'>+</span><t t-esc="record.message_follower_ids.raw_value.length"/></span>
169 <div class="oe_followers" groups="base.group_user">
170 <button t-if="record.message_is_follower.raw_value" name="action_unfollow" type="object" class="oe_follower oe_following">
171 <span class="oe_unfollow">Unfollow</span>
172 <span class="oe_following">Following</span>
174 <button t-if="! record.message_is_follower.raw_value" name="action_follow" type="object" class="oe_follower oe_notfollow">Follow</button>
179 $('.oe_employee_picture').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_employee_picture_wide') } });
187 <record id="open_view_employee_tree" model="ir.actions.act_window">
188 <field name="name">Employees Structure</field>
189 <field name="res_model">hr.employee</field>
190 <field name="view_type">tree</field>
191 <field name="view_mode">tree,form</field>
192 <field name="view_id" ref="view_employee_tree"/>
193 <field name="domain">[('parent_id','=',False)]</field>
194 <field name="search_view_id" ref="view_employee_filter"/>
197 <record id="open_view_employee_list" model="ir.actions.act_window">
198 <field name="name">Employees</field>
199 <field name="res_model">hr.employee</field>
200 <field name="view_type">form</field>
201 <field name="view_mode">form,tree</field>
202 <field name="view_id" eval="False"/>
203 <field name="search_view_id" ref="view_employee_filter"/>
206 <record id="open_view_employee_list_my" model="ir.actions.act_window">
207 <field name="name">Employees</field>
208 <field name="res_model">hr.employee</field>
209 <field name="view_type">form</field>
210 <field name="view_mode">kanban,tree,form</field>
211 <field name="domain">[]</field>
212 <field name="context">{}</field>
213 <field name="view_id" eval="False"/>
214 <field name="search_view_id" ref="view_employee_filter"/>
215 <field name="help" type="html">
216 <p class="oe_view_nocontent_create">
217 Click to add a new employee.
219 With just a quick glance on the OpenERP employee screen, you
220 can easily find all the information you need for each person;
221 contact data, job position, availability, etc.
226 <menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/>
228 <!-- Employee architecture -->
229 <record id="view_partner_tree2" model="ir.ui.view">
230 <field name="name">hr.employee.tree</field>
231 <field name="model">hr.employee</field>
232 <field name="field_parent">child_ids</field>
233 <field eval="20" name="priority"/>
234 <field name="arch" type="xml">
235 <tree string="Employees">
237 <field name="work_phone"/>
238 <field name="work_email"/>
239 <field name="company_id" groups="base.group_multi_company"/>
240 <field name="department_id"/>
241 <field name="job_id"/>
242 <field name="coach_id" invisible="1"/>
243 <field name="parent_id" invisible="1"/>
248 <record id="action2" model="ir.actions.act_window">
249 <field name="name">Subordinate Hierarchy</field>
250 <field name="type">ir.actions.act_window</field>
251 <field name="res_model">hr.employee</field>
252 <field name="domain">[('id','in',active_ids)]</field>
253 <field name="view_type">tree</field>
254 <field name="view_id" ref="view_partner_tree2"/>
258 <field eval="'action'" name="key"/>
259 <field eval="'client_action_multi'" name="key2"/>
260 <field eval="['hr.employee']" name="models"/>
261 <field name="name">Subordinate Hierarchy</field>
262 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
263 <field eval="True" name="isobject"/>
264 <field eval="True" name="replace"/>
267 <!-- Employee Category -->
268 <record id="view_employee_category_form" model="ir.ui.view">
269 <field name="name">hr.employee.category.form</field>
270 <field name="model">hr.employee.category</field>
271 <field name="arch" type="xml">
272 <form string="Employee Category" version="7.0">
275 <field name="parent_id"/>
281 <record id="view_employee_category_list" model="ir.ui.view">
282 <field name="name">hr.employee.category.list</field>
283 <field name="model">hr.employee.category</field>
284 <field eval="8" name="priority"/>
285 <field name="arch" type="xml">
286 <tree string="Employees Categories">
287 <field name="complete_name"/>
292 <record id="view_employee_category_tree" model="ir.ui.view">
293 <field name="name">hr.employee.category.tree</field>
294 <field name="model">hr.employee.category</field>
295 <field name="field_parent">child_ids</field>
296 <field name="arch" type="xml">
297 <tree string="Employees Categories">
303 <record id="open_view_categ_form" model="ir.actions.act_window">
304 <field name="name">Employee Tags</field>
305 <field name="res_model">hr.employee.category</field>
306 <field name="view_type">form</field>
307 <field name="view_mode">tree,form</field>
310 <menuitem action="open_view_categ_form" id="menu_view_employee_category_form"
311 parent="hr.menu_hr_configuration" sequence="1" groups="base.group_no_one"/>
313 <record id="hr_employee_normal_action_tree" model="ir.actions.act_window">
314 <field name="name">Employees</field>
315 <field name="type">ir.actions.act_window</field>
316 <field name="res_model">hr.employee</field>
317 <field name="view_type">form</field>
318 <field name="view_mode">tree,form</field>
319 <field name="domain">[('category_ids','=', active_ids)]</field>
322 <record id="hr_employee_category_open" model="ir.values">
323 <field eval="'tree_but_open'" name="key2"/>
324 <field eval="'hr.employee.category'" name="model"/>
325 <field name="name">Employees by Categories</field>
326 <field eval="'ir.actions.act_window,%d'%hr_employee_normal_action_tree" name="value"/>
330 <record id="view_hr_job_form" model="ir.ui.view">
331 <field name="name">hr.job.form</field>
332 <field name="model">hr.job</field>
333 <field name="arch" type="xml">
334 <form string="Job" version="7.0">
336 <button name="set_recruit" string="Launch Recruitment" states="open" type="object" class="oe_highlight" groups="base.group_user"/>
337 <button name="set_open" string="Stop Recruitment" states="recruit" type="object" class="oe_highlight" groups="base.group_user"/>
338 <field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
341 <div class="oe_title">
342 <label for="name" class="oe_edit_only"/>
343 <h1><field name="name" class="oe_inline"/></h1>
345 <div class="oe_right" name="buttons"/>
346 <group name="employee_data">
347 <field name="department_id" class="oe_inline"/>
348 <label for="no_of_employee"/>no_of_recruitment
350 <field name="no_of_employee" class="oe_inline"/>
351 <p><field name="no_of_recruitment" groups="base.group_user" colspan="0" class="oe_inline" style="padding-top: 1px"/> new employee(s) expected</p>
354 <div attrs="{'invisible': [('state', '!=', 'recruit')]}">
355 <label for="description"/>
356 <field name="description"/>
358 <div attrs="{'invisible': [('state', '!=', 'recruit')]}">
359 <label for="requirements"/>
360 <field name="requirements"/>
363 <div class="oe_chatter">
364 <field name="message_follower_ids" widget="mail_followers"/>
365 <field name="message_ids" widget="mail_thread"/>
371 <record id="view_hr_job_tree" model="ir.ui.view">
372 <field name="name">hr.job.tree</field>
373 <field name="model">hr.job</field>
374 <field name="arch" type="xml">
377 <field name="department_id"/>
378 <field name="no_of_employee"/>
379 <field name="no_of_recruitment"/>
380 <field name="expected_employees"/>
381 <field name="no_of_hired_employee"/>
382 <field name="state"/>
387 <record id="view_job_filter" model="ir.ui.view">
388 <field name="name">Job</field>
389 <field name="model">hr.job</field>
390 <field name="arch" type="xml">
391 <search string="Jobs">
392 <field name="name" string="Job"/>
393 <filter domain="[('state','=','open')]" string="In Position"/>
394 <filter domain="[('state','=','recruit')]" string="In Recruitment" name="in_recruitment"/>
395 <field name="department_id"/>
396 <group expand="0" string="Group By...">
397 <filter string="Department" domain="[]" context="{'group_by':'department_id'}"/>
398 <filter string="Status" domain="[]" context="{'group_by':'state'}"/>
399 <filter string="Company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
405 <record model="ir.actions.act_window" id="action_hr_job">
406 <field name="name">Job Positions</field>
407 <field name="res_model">hr.job</field>
408 <field name="view_type">form</field>
409 <field name="view_mode">tree,form</field>
410 <field name="search_view_id" ref="view_job_filter"/>
411 <field name="context">{"search_default_Current":1}</field>
412 <field name="help" type="html">
413 <p class="oe_view_nocontent_create">
414 Click to define a new job position.
416 Job Positions are used to define jobs and their requirements.
417 You can keep track of the number of employees you have per job
418 position and follow the evolution according to what you planned
421 You can attach a survey to a job position. It will be used in
422 the recruitment process to evaluate the applicants for this job
428 <menuitem name="Recruitment" id="base.menu_crm_case_job_req_main" parent="menu_hr_root" groups="base.group_hr_user"/>
430 <!-- hr.department -->
431 <record id="view_department_form" model="ir.ui.view">
432 <field name="name">hr.department.form</field>
433 <field name="model">hr.department</field>
434 <field name="arch" type="xml">
435 <form string="department" version="7.0">
439 <field name="manager_id"/>
440 <field name="parent_id"/>
441 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
447 <record id="view_department_tree" model="ir.ui.view">
448 <field name="name">hr.department.tree</field>
449 <field name="model">hr.department</field>
450 <field name="field_parent">child_ids</field>
451 <field name="arch" type="xml">
452 <tree string="Companies">
453 <field name="complete_name"/>
454 <field name="company_id" groups="base.group_multi_company"/>
455 <field name="manager_id"/>
459 <record id="view_department_filter" model="ir.ui.view">
460 <field name="name">Departments</field>
461 <field name="model">hr.department</field>
462 <field name="arch" type="xml">
463 <search string="Departments">
464 <field name="name" string="Department"/>
465 <field name="manager_id" />
469 <record id="open_module_tree_department" model="ir.actions.act_window">
470 <field name="name">Departments</field>
471 <field name="res_model">hr.department</field>
472 <field name="view_type">form</field>
473 <field name="search_view_id" ref="view_department_filter"/>
474 <field name="help" type="html">
475 <p class="oe_view_nocontent_create">
476 Click to create a department.
478 OpenERP's department structure is used to manage all documents
479 related to employees by departments: expenses, timesheets,
480 leaves and holidays, recruitments, etc.
484 <menuitem action="open_module_tree_department" id="menu_hr_department_tree" parent="hr.menu_hr_configuration" sequence="5"/>