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_management" name="Human Resources" parent="hr.menu_hr_configuration" groups="base.group_no_one" sequence="25"/>
13 <menuitem id="menu_hr_reporting_timesheet" name="Reports"
14 parent="menu_hr_reporting" sequence="6"/>
16 <!--Employee form view -->
17 <record id="view_employee_form" model="ir.ui.view">
18 <field name="name">hr.employee.form</field>
19 <field name="model">hr.employee</field>
20 <field name="arch" type="xml">
21 <form string="Employee" version="7.0">
23 <field name="photo" widget='image' class="oe_right" on_change="onchange_photo(photo)"/>
24 <div class="oe_title">
25 <label for="name" class="oe_edit_only"/>
27 <field name="name" class="oe_inline"/>
28 <label class="oe_inline" string="," attrs="{'invisible': [('job_id', '=', False)]}"/>
29 <field class="oe_inline" name="job_id" domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
30 <label class="oe_inline" string="at" attrs="{'invisible': [('company_id', '=', False)]}" groups="base.group_multi_company"/>
31 <field class="oe_inline" name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
33 <label for="department_id" class="oe_edit_only"/>
34 <h2><field name="department_id" on_change="onchange_department_id(department_id)"/></h2>
35 <label for="category_ids" class="oe_edit_only"/>
36 <h3><field name="category_ids" widget="many2many_tags"/></h3>
38 <div class="oe_right oe_button_box" name="button_box">
39 <!-- Put here related buttons -->
41 <group colspan="4" col="4">
42 <field name="work_email" widget="email"/>
43 <field name="work_phone"/>
44 <field name="address_id" on_change="onchange_address_id(address_id)"/>
45 <field name="mobile_phone"/>
48 <page string="Information">
51 <field name="user_id" on_change="onchange_user(user_id)"/>
52 <field name="parent_id"/>
53 <field name="coach_id"/>
56 <field name="identification_id" groups="base.group_hr_user"/>
57 <field name="passport_id" groups="base.group_hr_user"/>
58 <field name="otherid" groups="base.group_hr_user"/>
60 <group name="active_group">
61 <field name="active"/>
64 <field name="notes" placeholder="Other Information ..." colspan="4"/>
66 <page string="Personal Information" groups="base.group_hr_user">
69 <field name="country_id"/>
70 <field name="bank_account_id"/>
71 <field name="address_home_id"/>
74 <field name="gender"/>
75 <field name="marital"/>
76 <field name="birthday"/>
86 <record id="view_employee_tree" model="ir.ui.view">
87 <field name="name">hr.employee.tree</field>
88 <field name="model">hr.employee</field>
89 <field name="arch" type="xml">
90 <tree string="Employees">
92 <field name="work_phone"/>
93 <field name="work_email"/>
94 <field name="company_id" groups="base.group_multi_company"/>
95 <field name="department_id"/>
96 <field name="job_id"/>
97 <field name="parent_id"/>
98 <field name="coach_id" invisible="1"/>
103 <record id="view_employee_filter" model="ir.ui.view">
104 <field name="name">Employees</field>
105 <field name="model">hr.employee</field>
106 <field name="arch" type="xml">
107 <search string="Employees">
108 <field name="name" string="Employees"/>
109 <field name="department_id" />
110 <field name="job_id"/>
111 <field name="parent_id"/>
112 <field name="category_ids"/>
113 <group expand="0" string="Group By...">
114 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
115 <filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
116 <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
117 <filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
118 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
123 <!-- HR Kanban View -->
125 <record model="ir.ui.view" id="hr_kanban_view_employees">
126 <field name="name">HR - Employess Kanban</field>
127 <field name="model">hr.employee</field>
128 <field name="arch" type="xml">
130 <field name="last_login"/>
132 <t t-name="kanban-box">
133 <div class="oe_employee_vignette">
134 <div class="oe_employee_image">
135 <a type="edit"><img t-att-src="kanban_image('hr.employee', 'photo', record.id.value)" class="oe_employee_picture"/></a>
137 <div class="oe_employee_details">
139 <a type="edit"><field name="name"/><t t-if="record.login.raw_value"> (<field name="login"/>)</t></a>
143 <span t-if="record.last_login.raw_value && record.last_login.raw_value.is().today()" class="oe_kanban_button" style="font-size: 100%%">
144 <t t-esc="record.last_login.raw_value.toString('HH:mm')"/>
147 <li t-if="record.job_id.raw_value"><field name="job_id"/></li>
148 <li t-if="record.work_location.raw_value"><field name="work_location"/></li>
149 <li t-if="record.work_phone.raw_value">Tel: <field name="work_phone"/></li>
150 <li t-if="record.mobile_phone.raw_value">Mobile: <field name="mobile_phone"/></li>
151 <li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
156 $('.oe_employee_picture').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_employee_picture_wide') } });
164 <record id="open_view_employee_tree" model="ir.actions.act_window">
165 <field name="name">Employees Structure</field>
166 <field name="res_model">hr.employee</field>
167 <field name="view_type">tree</field>
168 <field name="view_mode">tree,form</field>
169 <field name="view_id" ref="view_employee_tree"/>
170 <field name="domain">[('parent_id','=',False)]</field>
171 <field name="search_view_id" ref="view_employee_filter"/>
174 <record id="open_view_employee_list" model="ir.actions.act_window">
175 <field name="name">Employees</field>
176 <field name="res_model">hr.employee</field>
177 <field name="view_type">form</field>
178 <field name="view_mode">tree,form</field>
179 <field name="view_id" eval="False"/>
180 <field name="search_view_id" ref="view_employee_filter"/>
183 <record id="open_view_employee_list_my" model="ir.actions.act_window">
184 <field name="name">Employees</field>
185 <field name="res_model">hr.employee</field>
186 <field name="view_type">form</field>
187 <field name="view_mode">kanban,tree,form</field>
188 <field name="domain">[]</field>
189 <field name="context">{}</field>
190 <field name="view_id" eval="False"/>
191 <field name="search_view_id" ref="view_employee_filter"/>
192 <field name="help" type="html">
193 <p class="oe_view_nocontent_create">
194 Click to add a new employee.
196 With just a quick glance on the OpenERP employee screen, you
197 can easily find all the information you need for each person;
198 contact data, job position, availability, etc.
203 <record id="open_view_employee_list_my_kanban" model="ir.actions.act_window.view">
204 <field name="sequence" eval="0"/>
205 <field name="view_mode">kanban</field>
206 <field name="act_window_id" ref="open_view_employee_list_my"/>
208 <record id="open_view_employee_list_my_tree2" model="ir.actions.act_window.view">
209 <field name="sequence" eval="1"/>
210 <field name="view_mode">tree</field>
211 <field name="view_id" ref="view_employee_tree"/>
212 <field name="act_window_id" ref="open_view_employee_list_my"/>
215 <record id="open_view_employee_list_my_form2" model="ir.actions.act_window.view">
216 <field name="sequence" eval="2"/>
217 <field name="view_mode">form</field>
218 <field name="view_id" ref="view_employee_form"/>
219 <field name="act_window_id" ref="open_view_employee_list_my"/>
222 <menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/>
224 <record id="ir_ui_view_sc_employee" model="ir.ui.view_sc">
225 <field name="name">Employees</field>
226 <field name="resource">ir.ui.menu</field>
227 <field name="user_id" ref="base.user_root"/>
228 <field name="res_id" ref="hr.menu_open_view_employee_list_my"/>
231 <!-- Employee architecture -->
232 <record id="view_partner_tree2" model="ir.ui.view">
233 <field name="name">hr.employee.tree</field>
234 <field name="model">hr.employee</field>
235 <field name="field_parent">child_ids</field>
236 <field eval="20" name="priority"/>
237 <field name="arch" type="xml">
238 <tree string="Employees">
240 <field name="work_phone"/>
241 <field name="work_email"/>
242 <field name="company_id" groups="base.group_multi_company"/>
243 <field name="department_id"/>
244 <field name="job_id"/>
245 <field name="coach_id" invisible="1"/>
250 <record id="action2" model="ir.actions.act_window">
251 <field name="name">Subordinate Hierarchy</field>
252 <field name="type">ir.actions.act_window</field>
253 <field name="res_model">hr.employee</field>
254 <field name="domain">[('id','in',active_ids)]</field>
255 <field name="view_type">tree</field>
256 <field name="view_id" ref="view_partner_tree2"/>
260 <field eval="'action'" name="key"/>
261 <field eval="'client_action_multi'" name="key2"/>
262 <field eval="['hr.employee']" name="models"/>
263 <field name="name">Subordinate Hierarchy</field>
264 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
265 <field eval="True" name="isobject"/>
266 <field eval="True" name="replace"/>
269 <!-- Employee Category -->
270 <record id="view_employee_category_form" model="ir.ui.view">
271 <field name="name">hr.employee.category.form</field>
272 <field name="model">hr.employee.category</field>
273 <field name="arch" type="xml">
274 <form string="Employee Category" version="7.0">
277 <field name="parent_id"/>
283 <record id="view_employee_category_list" model="ir.ui.view">
284 <field name="name">hr.employee.category.list</field>
285 <field name="model">hr.employee.category</field>
286 <field eval="8" name="priority"/>
287 <field name="arch" type="xml">
288 <tree string="Employees Categories">
289 <field name="complete_name"/>
294 <record id="view_employee_category_tree" model="ir.ui.view">
295 <field name="name">hr.employee.category.tree</field>
296 <field name="model">hr.employee.category</field>
297 <field name="field_parent">child_ids</field>
298 <field name="arch" type="xml">
299 <tree string="Employees Categories">
305 <record id="open_view_categ_form" model="ir.actions.act_window">
306 <field name="name">Categories of Employee</field>
307 <field name="res_model">hr.employee.category</field>
308 <field name="view_type">form</field>
309 <field name="view_mode">tree,form</field>
312 <menuitem action="open_view_categ_form" id="menu_view_employee_category_form"
313 parent="hr.menu_hr_configuration" sequence="1" groups="base.group_no_one"/>
315 <record id="open_view_categ_tree" model="ir.actions.act_window">
316 <field name="name">Categories Structure</field>
317 <field name="res_model">hr.employee.category</field>
318 <field name="view_type">tree</field>
319 <field name="view_id" ref="view_employee_category_tree"/>
320 <field name="domain">[('parent_id','=',False)]</field>
323 <record id="hr_employee_normal_action_tree" model="ir.actions.act_window">
324 <field name="name">Employees</field>
325 <field name="type">ir.actions.act_window</field>
326 <field name="res_model">hr.employee</field>
327 <field name="view_type">form</field>
328 <field name="view_mode">tree,form</field>
329 <field name="domain">[('category_ids','=', active_ids)]</field>
332 <record id="hr_employee_category_open" model="ir.values">
333 <field eval="'tree_but_open'" name="key2"/>
334 <field eval="'hr.employee.category'" name="model"/>
335 <field name="name">Employees by Categories</field>
336 <field eval="'ir.actions.act_window,%d'%hr_employee_normal_action_tree" name="value"/>
339 <menuitem action="open_view_categ_tree"
340 id="menu_view_employee_category_tree" parent="menu_hr_management" groups="base.group_no_one" sequence="2"/>
342 <record id="view_hr_job_form" model="ir.ui.view">
343 <field name="name">hr.job.form</field>
344 <field name="model">hr.job</field>
345 <field name="arch" type="xml">
346 <form string="Job" version="7.0">
348 <span groups="base.group_user">
349 <button name="job_recruitement" string="In Recruitement" states="open" type="object" class="oe_highlight"/>
350 <button name="job_open" string="Recruitment Done" states="recruit" type="object" class="oe_highlight"/>
352 <field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
355 <label for="name" class="oe_edit_only"/>
357 <field name="name" class="oe_inline"/>
358 <label class="oe_inline" string="(" attrs="{'invisible': [('department_id', '=', False)]}"/>
359 <field name="department_id" class="oe_inline"/>
360 <label class="oe_inline" string=")" attrs="{'invisible': [('department_id', '=', False)]}"/>
364 <field name="no_of_employee" groups="base.group_user"/>
365 <field name="expected_employees" groups="base.group_user"/>
366 <field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)"/>
369 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
373 <page string="Description">
374 <label for="description"/>
375 <field name="description"/>
376 <label for="requirements"/>
377 <field name="requirements"/>
385 <record id="view_hr_job_tree" model="ir.ui.view">
386 <field name="name">hr.job.tree</field>
387 <field name="model">hr.job</field>
388 <field name="arch" type="xml">
391 <field name="department_id"/>
392 <field name="company_id" groups="base.group_multi_company"/>
393 <field name="expected_employees"/>
394 <field name="no_of_employee"/>
395 <field name="no_of_recruitment"/>
396 <field name="state"/>
401 <record id="view_job_filter" model="ir.ui.view">
402 <field name="name">Job</field>
403 <field name="model">hr.job</field>
404 <field name="arch" type="xml">
405 <search string="Jobs">
406 <field name="name" string="Job"/>
407 <filter icon="terp-camera_test" domain="[('state','=','open')]" string="In Position" help="In Position"/>
408 <filter icon="terp-personal+" domain="[('state','=','recruit')]" string="In Recruitment" help="In Recruitment"/>
409 <field name="department_id"/>
410 <group expand="0" string="Group By...">
411 <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
412 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
413 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
419 <record id="view_hr_job_employee_form" model="ir.ui.view">
420 <field name="name">hr.job.employee.form</field>
421 <field name="model">hr.job</field>
422 <field name="priority">20</field>
423 <field name="arch" type="xml">
424 <form string="Job" version="7.0">
427 <field name="department_id"/>
429 <label for="description"/>
430 <field name="description"/>
435 <record model="ir.actions.act_window" id="action_hr_job">
436 <field name="name">Job Positions</field>
437 <field name="res_model">hr.job</field>
438 <field name="view_type">form</field>
439 <field name="view_mode">tree,form</field>
440 <field name="search_view_id" ref="view_job_filter"/>
441 <field name="context">{"search_default_Current":1}</field>
442 <field name="help" type="html">
443 <p class="oe_view_nocontent_create">
444 Click to define a new job position.
446 Job Positions are used to define jobs and their requirements.
447 You can keep track of the number of employees you have per job
448 position and follow the evolution according to what you planned
451 You can attach a survey to a job position. It will be used in
452 the recruitment process to evaluate the applicants for this job
458 <menuitem name="Recruitment" id="base.menu_crm_case_job_req_main" parent="menu_hr_root" groups="base.group_hr_user"/>
459 <menuitem parent="hr.menu_hr_configuration" id="menu_hr_job" action="action_hr_job" sequence="6"/>