2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2012-07-18 10:34:29 +00:00
|
|
|
<!-- Top menu item -->
|
|
|
|
<menuitem name="Human Resources"
|
|
|
|
id="menu_hr_root"
|
|
|
|
groups="base.group_hr_manager,base.group_hr_user,base.group_user"
|
2012-11-21 16:27:53 +00:00
|
|
|
sequence="90"/>
|
2014-01-30 06:49:23 +00:00
|
|
|
<menuitem id="menu_hr_reporting" parent="base.menu_reporting" name="Human Resources" sequence="40" />
|
2010-12-28 15:34:17 +00:00
|
|
|
<menuitem id="menu_hr_main" parent="menu_hr_root" name="Human Resources" sequence="0"/>
|
2010-10-08 13:22:47 +00:00
|
|
|
<menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_manager" sequence="50"/>
|
2012-07-02 10:04:09 +00:00
|
|
|
<menuitem id="menu_hr_reporting_timesheet" name="Reports"
|
2012-07-17 09:12:30 +00:00
|
|
|
parent="menu_hr_reporting" sequence="6"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
|
2012-06-22 13:09:39 +00:00
|
|
|
<!--Employee form view -->
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_employee_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.employee.form</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 14:39:04 +00:00
|
|
|
<form string="Employee" version="7.0">
|
2012-06-07 17:30:07 +00:00
|
|
|
<sheet>
|
2012-09-07 06:32:20 +00:00
|
|
|
<field name="image_medium" widget='image' class="oe_left oe_avatar"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only"/>
|
|
|
|
<h1>
|
2012-08-07 16:22:16 +00:00
|
|
|
<field name="name"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
</h1>
|
2012-12-08 10:33:38 +00:00
|
|
|
<label for="category_ids" class="oe_edit_only" groups="base.group_hr_user"/>
|
|
|
|
<field name="category_ids" widget="many2many_tags" placeholder="e.g. Part Time" groups="base.group_hr_user"/>
|
2013-03-20 11:15:20 +00:00
|
|
|
<label for="work_email" class="oe_edit_only"/>
|
|
|
|
<field name="work_email" widget="email"/>
|
|
|
|
<label for="work_phone" class="oe_edit_only"/>
|
|
|
|
<field name="work_phone"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
</div>
|
2012-07-16 21:18:52 +00:00
|
|
|
<div class="oe_right oe_button_box" name="button_box">
|
|
|
|
<!-- Put here related buttons -->
|
|
|
|
</div>
|
2012-06-22 12:23:00 +00:00
|
|
|
<notebook>
|
2012-09-06 11:17:21 +00:00
|
|
|
<page string="Public Information">
|
2012-06-28 13:12:10 +00:00
|
|
|
<group>
|
2012-09-06 11:17:21 +00:00
|
|
|
<group string="Contact Information">
|
2014-06-13 07:07:28 +00:00
|
|
|
<field name="address_id" on_change="onchange_address_id(address_id)"
|
|
|
|
context="{'show_address': 1, 'default_customer': False}"
|
|
|
|
options='{"always_reload": True, "highlight_first_line": True}'/>
|
2012-09-06 11:17:21 +00:00
|
|
|
<field name="mobile_phone"/>
|
2012-10-12 07:51:37 +00:00
|
|
|
<field name="work_location"/>
|
2012-09-06 11:17:21 +00:00
|
|
|
</group>
|
|
|
|
<group string="Position">
|
2012-09-07 06:32:20 +00:00
|
|
|
<field name="department_id" on_change="onchange_department_id(department_id)"/>
|
2014-02-10 16:13:26 +00:00
|
|
|
<field name="job_id"/>
|
2012-07-17 09:12:30 +00:00
|
|
|
<field name="parent_id"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
<field name="coach_id"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
2012-09-06 11:17:21 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
|
2013-01-30 11:14:03 +00:00
|
|
|
<field name="user_id" on_change="onchange_user(user_id)" string="Related User"
|
2013-03-18 11:39:48 +00:00
|
|
|
context="{'default_groups_ref': ['base.group_user']}"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
</group>
|
2012-06-07 17:30:07 +00:00
|
|
|
</group>
|
2012-06-22 12:23:00 +00:00
|
|
|
<field name="notes" placeholder="Other Information ..." colspan="4"/>
|
|
|
|
</page>
|
|
|
|
<page string="Personal Information" groups="base.group_hr_user">
|
2012-09-06 11:17:21 +00:00
|
|
|
<group>
|
2012-09-07 11:27:45 +00:00
|
|
|
<group string="Citizenship & Other Info">
|
2012-10-09 14:34:33 +00:00
|
|
|
<field name="country_id" options='{"no_open": True}'/>
|
2012-09-06 11:17:21 +00:00
|
|
|
<field name="identification_id" groups="base.group_hr_user"/>
|
|
|
|
<field name="passport_id" groups="base.group_hr_user"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
<field name="bank_account_id"/>
|
2012-09-06 11:17:21 +00:00
|
|
|
<field name="otherid" groups="base.group_hr_user"/>
|
2012-06-22 12:23:00 +00:00
|
|
|
</group>
|
2012-09-06 11:17:21 +00:00
|
|
|
<group string="Contact Information">
|
2014-06-13 07:07:28 +00:00
|
|
|
<field name="address_home_id"
|
|
|
|
context="{'show_address': 1, 'default_customer': False}"
|
|
|
|
options='{"always_reload": True, "highlight_first_line": True}'/>
|
2012-09-06 11:17:21 +00:00
|
|
|
</group>
|
|
|
|
<group string="Status">
|
2012-06-22 12:23:00 +00:00
|
|
|
<field name="gender"/>
|
|
|
|
<field name="marital"/>
|
2012-09-06 11:17:21 +00:00
|
|
|
</group>
|
|
|
|
<group string="Birth">
|
2012-06-22 12:23:00 +00:00
|
|
|
<field name="birthday"/>
|
|
|
|
</group>
|
2012-06-07 17:30:07 +00:00
|
|
|
</group>
|
2012-06-22 12:23:00 +00:00
|
|
|
</page>
|
2012-09-06 11:17:21 +00:00
|
|
|
<page string="HR Settings" groups="base.group_hr_user">
|
|
|
|
<group>
|
|
|
|
<group string="Active" name="active_group">
|
|
|
|
<field name="active"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
2012-06-22 12:23:00 +00:00
|
|
|
</notebook>
|
2012-06-07 17:30:07 +00:00
|
|
|
</sheet>
|
2013-01-28 05:22:23 +00:00
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
|
|
</div>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-27 20:53:10 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_employee_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.employee.tree</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Employees">
|
|
|
|
<field name="name"/>
|
2008-08-27 20:53:10 +00:00
|
|
|
<field name="work_phone"/>
|
2010-12-30 17:08:00 +00:00
|
|
|
<field name="work_email"/>
|
2010-09-27 11:11:55 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2010-03-05 17:51:47 +00:00
|
|
|
<field name="department_id"/>
|
2010-03-18 17:39:33 +00:00
|
|
|
<field name="job_id"/>
|
2008-08-27 20:53:10 +00:00
|
|
|
<field name="parent_id"/>
|
2012-06-04 12:44:17 +00:00
|
|
|
<field name="coach_id" invisible="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2010-02-17 05:25:53 +00:00
|
|
|
<record id="view_employee_filter" model="ir.ui.view">
|
2010-02-28 19:44:19 +00:00
|
|
|
<field name="name">Employees</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Employees">
|
2013-10-23 16:28:07 +00:00
|
|
|
<field name="name" string="Employees" filter_domain="['|',('work_email','ilike',self),('name','ilike',self)]"/>
|
2012-07-20 10:10:46 +00:00
|
|
|
<field name="department_id" />
|
2012-12-08 10:33:38 +00:00
|
|
|
<field name="category_ids" groups="base.group_hr_user"/>
|
2010-06-03 13:44:00 +00:00
|
|
|
<group expand="0" string="Group By...">
|
2012-06-13 12:41:57 +00:00
|
|
|
<filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
|
|
|
|
<filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
|
|
|
|
<filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
|
|
|
|
<filter string="Job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
|
|
|
|
<filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-03-09 16:44:45 +00:00
|
|
|
</group>
|
2010-02-28 19:44:19 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
2010-02-17 05:25:53 +00:00
|
|
|
</record>
|
2011-09-16 10:12:14 +00:00
|
|
|
<!-- HR Kanban View -->
|
2011-12-23 09:17:44 +00:00
|
|
|
|
2011-09-16 10:12:14 +00:00
|
|
|
<record model="ir.ui.view" id="hr_kanban_view_employees">
|
|
|
|
<field name="name">HR - Employess Kanban</field>
|
|
|
|
<field name="model">hr.employee</field>
|
2013-10-16 09:21:06 +00:00
|
|
|
<field name="priority">10</field>
|
2011-09-16 10:12:14 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-12-20 10:08:28 +00:00
|
|
|
<kanban>
|
2012-05-29 12:47:48 +00:00
|
|
|
<field name="last_login"/>
|
2013-03-20 11:15:20 +00:00
|
|
|
<field name="message_is_follower"/>
|
2013-06-12 08:49:24 +00:00
|
|
|
<field name="message_follower_ids"/>
|
|
|
|
<field name="message_ids"/>
|
2011-12-20 10:08:28 +00:00
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
2012-09-06 10:46:24 +00:00
|
|
|
<div class="oe_employee_vignette">
|
2011-12-20 10:08:28 +00:00
|
|
|
<div class="oe_employee_image">
|
2012-08-29 11:48:47 +00:00
|
|
|
<a type="open"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_picture"/></a>
|
2011-12-20 10:08:28 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_employee_details">
|
2012-07-05 10:44:52 +00:00
|
|
|
<h4>
|
2012-08-29 11:48:47 +00:00
|
|
|
<a type="open"><field name="name"/><t t-if="record.login.raw_value"> (<field name="login"/>)</t></a>
|
2012-07-05 10:44:52 +00:00
|
|
|
</h4>
|
2011-12-20 10:08:28 +00:00
|
|
|
<ul>
|
2012-06-12 14:28:08 +00:00
|
|
|
<li id="last_login">
|
|
|
|
<span t-if="record.last_login.raw_value && record.last_login.raw_value.is().today()" class="oe_kanban_button" style="font-size: 100%%">
|
2012-05-29 12:47:48 +00:00
|
|
|
<t t-esc="record.last_login.raw_value.toString('HH:mm')"/>
|
|
|
|
</span>
|
|
|
|
</li>
|
2011-12-20 10:08:28 +00:00
|
|
|
<li t-if="record.job_id.raw_value"><field name="job_id"/></li>
|
|
|
|
<li t-if="record.work_location.raw_value"><field name="work_location"/></li>
|
|
|
|
<li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
|
|
|
|
</ul>
|
2013-06-12 08:49:24 +00:00
|
|
|
<div class="oe_kanban_footer_left">
|
|
|
|
<span title='Messages'><span class='oe_e'>9</span><t t-esc="record.message_ids.raw_value.length"/></span>
|
|
|
|
<span title='Followers'><span class='oe_e'>+</span><t t-esc="record.message_follower_ids.raw_value.length"/></span>
|
|
|
|
</div>
|
|
|
|
<div class="oe_followers" groups="base.group_user">
|
2013-03-20 11:15:20 +00:00
|
|
|
<button t-if="record.message_is_follower.raw_value" name="action_unfollow" type="object" class="oe_follower oe_following">
|
|
|
|
<span class="oe_unfollow">Unfollow</span>
|
|
|
|
<span class="oe_following">Following</span>
|
|
|
|
</button>
|
|
|
|
<button t-if="! record.message_is_follower.raw_value" name="action_follow" type="object" class="oe_follower oe_notfollow">Follow</button>
|
|
|
|
</div>
|
2011-12-20 10:08:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$('.oe_employee_picture').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_employee_picture_wide') } });
|
|
|
|
</script>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
2011-12-09 16:15:56 +00:00
|
|
|
|
2011-09-16 10:12:14 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="open_view_employee_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Employees Structure</field>
|
|
|
|
<field name="res_model">hr.employee</field>
|
|
|
|
<field name="view_type">tree</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="view_id" ref="view_employee_tree"/>
|
2011-11-25 17:09:06 +00:00
|
|
|
<field name="domain">[('parent_id','=',False)]</field>
|
2010-02-17 05:25:53 +00:00
|
|
|
<field name="search_view_id" ref="view_employee_filter"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="open_view_employee_list" model="ir.actions.act_window">
|
|
|
|
<field name="name">Employees</field>
|
|
|
|
<field name="res_model">hr.employee</field>
|
|
|
|
<field name="view_type">form</field>
|
2012-09-12 09:28:57 +00:00
|
|
|
<field name="view_mode">form,tree</field>
|
2008-08-28 23:48:43 +00:00
|
|
|
<field name="view_id" eval="False"/>
|
2010-02-17 05:25:53 +00:00
|
|
|
<field name="search_view_id" ref="view_employee_filter"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
|
|
|
<record id="open_view_employee_list_my" model="ir.actions.act_window">
|
2010-02-16 06:48:51 +00:00
|
|
|
<field name="name">Employees</field>
|
2008-08-29 11:34:54 +00:00
|
|
|
<field name="res_model">hr.employee</field>
|
|
|
|
<field name="view_type">form</field>
|
2011-12-06 12:05:32 +00:00
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
2008-10-31 22:43:31 +00:00
|
|
|
<field name="domain">[]</field>
|
2012-05-21 16:07:45 +00:00
|
|
|
<field name="context">{}</field>
|
2011-12-06 12:05:32 +00:00
|
|
|
<field name="view_id" eval="False"/>
|
2010-02-17 05:25:53 +00:00
|
|
|
<field name="search_view_id" ref="view_employee_filter"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-04 13:21:36 +00:00
|
|
|
Click to add a new employee.
|
|
|
|
</p><p>
|
|
|
|
With just a quick glance on the OpenERP employee screen, you
|
|
|
|
can easily find all the information you need for each person;
|
|
|
|
contact data, job position, availability, etc.
|
|
|
|
</p>
|
|
|
|
</field>
|
2008-08-29 11:34:54 +00:00
|
|
|
</record>
|
2011-12-06 12:05:32 +00:00
|
|
|
|
2010-12-28 15:34:17 +00:00
|
|
|
<menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/>
|
2008-08-27 20:53:10 +00:00
|
|
|
|
2012-07-25 18:16:10 +00:00
|
|
|
<!-- Employee architecture -->
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_partner_tree2" model="ir.ui.view">
|
|
|
|
<field name="name">hr.employee.tree</field>
|
|
|
|
<field name="model">hr.employee</field>
|
|
|
|
<field name="field_parent">child_ids</field>
|
2011-05-04 09:34:57 +00:00
|
|
|
<field eval="20" name="priority"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Employees">
|
|
|
|
<field name="name"/>
|
2011-11-08 23:00:27 +00:00
|
|
|
<field name="work_phone"/>
|
|
|
|
<field name="work_email"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
|
|
<field name="department_id"/>
|
|
|
|
<field name="job_id"/>
|
2012-06-04 12:44:17 +00:00
|
|
|
<field name="coach_id" invisible="1"/>
|
2012-11-23 09:04:53 +00:00
|
|
|
<field name="parent_id" invisible="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action2" model="ir.actions.act_window">
|
2012-04-23 10:20:03 +00:00
|
|
|
<field name="name">Subordinate Hierarchy</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr.employee</field>
|
|
|
|
<field name="domain">[('id','in',active_ids)]</field>
|
|
|
|
<field name="view_type">tree</field>
|
|
|
|
<field name="view_id" ref="view_partner_tree2"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<ir_set>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field eval="'action'" name="key"/>
|
|
|
|
<field eval="'client_action_multi'" name="key2"/>
|
|
|
|
<field eval="['hr.employee']" name="models"/>
|
2012-04-23 10:20:03 +00:00
|
|
|
<field name="name">Subordinate Hierarchy</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
|
|
|
|
<field eval="True" name="isobject"/>
|
|
|
|
<field eval="True" name="replace"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</ir_set>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2012-07-25 18:16:10 +00:00
|
|
|
<!-- Employee Category -->
|
2008-09-16 14:25:47 +00:00
|
|
|
<record id="view_employee_category_form" model="ir.ui.view">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name">hr.employee.category.form</field>
|
|
|
|
<field name="model">hr.employee.category</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 14:39:04 +00:00
|
|
|
<form string="Employee Category" version="7.0">
|
2012-06-07 17:30:07 +00:00
|
|
|
<group>
|
2012-06-22 13:09:39 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="parent_id"/>
|
2012-06-07 17:30:07 +00:00
|
|
|
</group>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_employee_category_list" model="ir.ui.view">
|
|
|
|
<field name="name">hr.employee.category.list</field>
|
|
|
|
<field name="model">hr.employee.category</field>
|
|
|
|
<field eval="8" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Employees Categories">
|
2010-10-08 13:22:47 +00:00
|
|
|
<field name="complete_name"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_employee_category_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.employee.category.tree</field>
|
|
|
|
<field name="model">hr.employee.category</field>
|
|
|
|
<field name="field_parent">child_ids</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Employees Categories">
|
|
|
|
<field name="name"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="open_view_categ_form" model="ir.actions.act_window">
|
2012-11-20 13:29:26 +00:00
|
|
|
<field name="name">Employee Tags</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="res_model">hr.employee.category</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-07-01 16:09:07 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2010-07-03 10:21:52 +00:00
|
|
|
<menuitem action="open_view_categ_form" id="menu_view_employee_category_form"
|
2012-05-15 11:45:38 +00:00
|
|
|
parent="hr.menu_hr_configuration" sequence="1" groups="base.group_no_one"/>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2009-11-12 09:31:59 +00:00
|
|
|
<record id="hr_employee_normal_action_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Employees</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">hr.employee</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2011-11-09 05:42:55 +00:00
|
|
|
<field name="domain">[('category_ids','=', active_ids)]</field>
|
2009-11-12 09:31:59 +00:00
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2009-11-12 09:31:59 +00:00
|
|
|
<record id="hr_employee_category_open" model="ir.values">
|
|
|
|
<field eval="'tree_but_open'" name="key2"/>
|
|
|
|
<field eval="'hr.employee.category'" name="model"/>
|
|
|
|
<field name="name">Employees by Categories</field>
|
|
|
|
<field eval="'ir.actions.act_window,%d'%hr_employee_normal_action_tree" name="value"/>
|
|
|
|
</record>
|
2010-01-11 11:48:35 +00:00
|
|
|
|
2014-01-29 00:29:13 +00:00
|
|
|
<!-- hr.job -->
|
2010-02-28 19:44:19 +00:00
|
|
|
<record id="view_hr_job_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.job.form</field>
|
|
|
|
<field name="model">hr.job</field>
|
2010-02-18 10:13:12 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-06-09 14:39:04 +00:00
|
|
|
<form string="Job" version="7.0">
|
2012-06-07 17:30:07 +00:00
|
|
|
<header>
|
2014-02-10 16:13:26 +00:00
|
|
|
<button name="set_recruit" string="Launch Recruitment" states="open" type="object" class="oe_highlight" groups="base.group_user"/>
|
|
|
|
<button name="set_open" string="Stop Recruitment" states="recruit" type="object" class="oe_highlight" groups="base.group_user"/>
|
2012-06-07 17:30:07 +00:00
|
|
|
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
|
|
|
|
</header>
|
|
|
|
<sheet>
|
2012-10-01 13:24:07 +00:00
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only"/>
|
|
|
|
<h1><field name="name" class="oe_inline"/></h1>
|
|
|
|
</div>
|
2013-09-05 11:30:13 +00:00
|
|
|
<div class="oe_right" name="buttons"/>
|
2014-02-10 17:15:11 +00:00
|
|
|
<group name="employee_data">
|
|
|
|
<field name="department_id" class="oe_inline"/>
|
|
|
|
<label for="no_of_employee"/>no_of_recruitment
|
|
|
|
<div>
|
2014-02-11 12:04:33 +00:00
|
|
|
<field name="no_of_employee" class="oe_inline"/>
|
2014-02-10 17:15:11 +00:00
|
|
|
<p><field name="no_of_recruitment" groups="base.group_user" colspan="0" class="oe_inline" style="padding-top: 1px"/> new employee(s) expected</p>
|
|
|
|
</div>
|
2012-06-07 17:30:07 +00:00
|
|
|
</group>
|
2014-02-10 16:13:26 +00:00
|
|
|
<div attrs="{'invisible': [('state', '!=', 'recruit')]}">
|
2012-09-21 06:37:17 +00:00
|
|
|
<label for="description"/>
|
|
|
|
<field name="description"/>
|
|
|
|
</div>
|
2014-02-10 16:13:26 +00:00
|
|
|
<div attrs="{'invisible': [('state', '!=', 'recruit')]}">
|
2012-09-21 06:37:17 +00:00
|
|
|
<label for="requirements"/>
|
|
|
|
<field name="requirements"/>
|
|
|
|
</div>
|
2012-06-07 17:30:07 +00:00
|
|
|
</sheet>
|
2012-10-02 21:12:34 +00:00
|
|
|
<div class="oe_chatter">
|
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
2012-10-26 09:58:21 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-10-02 21:12:34 +00:00
|
|
|
</div>
|
2010-02-18 10:13:12 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2010-02-28 19:44:19 +00:00
|
|
|
<record id="view_hr_job_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.job.tree</field>
|
|
|
|
<field name="model">hr.job</field>
|
2010-02-18 10:13:12 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Job">
|
2012-06-04 12:44:17 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="department_id"/>
|
2010-02-18 10:13:12 +00:00
|
|
|
<field name="no_of_employee"/>
|
2010-10-14 10:43:56 +00:00
|
|
|
<field name="no_of_recruitment"/>
|
2013-06-26 12:16:17 +00:00
|
|
|
<field name="expected_employees"/>
|
2014-02-11 12:04:33 +00:00
|
|
|
<field name="no_of_hired_employee"/>
|
2010-02-28 19:44:19 +00:00
|
|
|
<field name="state"/>
|
2010-02-18 10:13:12 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-07-03 10:21:52 +00:00
|
|
|
|
2010-02-18 10:13:12 +00:00
|
|
|
<record id="view_job_filter" model="ir.ui.view">
|
2010-02-28 19:44:19 +00:00
|
|
|
<field name="name">Job</field>
|
|
|
|
<field name="model">hr.job</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Jobs">
|
2012-06-22 10:29:59 +00:00
|
|
|
<field name="name" string="Job"/>
|
2014-02-10 16:13:26 +00:00
|
|
|
<filter domain="[('state','=','open')]" string="In Position"/>
|
|
|
|
<filter domain="[('state','=','recruit')]" string="In Recruitment" name="in_recruitment"/>
|
2012-07-31 11:28:04 +00:00
|
|
|
<field name="department_id"/>
|
2010-08-19 09:38:02 +00:00
|
|
|
<group expand="0" string="Group By...">
|
2014-02-10 16:13:26 +00:00
|
|
|
<filter string="Department" domain="[]" context="{'group_by':'department_id'}"/>
|
|
|
|
<filter string="Status" domain="[]" context="{'group_by':'state'}"/>
|
|
|
|
<filter string="Company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-08-19 09:38:02 +00:00
|
|
|
</group>
|
2010-02-28 19:44:19 +00:00
|
|
|
</search>
|
2012-05-30 12:33:43 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2012-07-03 16:04:58 +00:00
|
|
|
|
2010-02-28 19:44:19 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_hr_job">
|
|
|
|
<field name="name">Job Positions</field>
|
|
|
|
<field name="res_model">hr.job</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2010-08-19 09:38:02 +00:00
|
|
|
<field name="search_view_id" ref="view_job_filter"/>
|
2012-05-21 16:07:45 +00:00
|
|
|
<field name="context">{"search_default_Current":1}</field>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-04 13:21:36 +00:00
|
|
|
Click to define a new job position.
|
|
|
|
</p><p>
|
|
|
|
Job Positions are used to define jobs and their requirements.
|
|
|
|
You can keep track of the number of employees you have per job
|
|
|
|
position and follow the evolution according to what you planned
|
|
|
|
for the future.
|
|
|
|
</p><p>
|
|
|
|
You can attach a survey to a job position. It will be used in
|
|
|
|
the recruitment process to evaluate the applicants for this job
|
|
|
|
position.
|
|
|
|
</p>
|
|
|
|
</field>
|
2010-02-28 19:44:19 +00:00
|
|
|
</record>
|
2010-02-18 10:13:12 +00:00
|
|
|
|
2010-10-08 13:22:47 +00:00
|
|
|
<menuitem name="Recruitment" id="base.menu_crm_case_job_req_main" parent="menu_hr_root" groups="base.group_hr_user"/>
|
2010-02-18 13:41:12 +00:00
|
|
|
|
2014-01-29 00:29:13 +00:00
|
|
|
<!-- hr.department -->
|
|
|
|
<record id="view_department_form" model="ir.ui.view">
|
|
|
|
<field name="name">hr.department.form</field>
|
|
|
|
<field name="model">hr.department</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="department" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<group col="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="manager_id"/>
|
|
|
|
<field name="parent_id"/>
|
|
|
|
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_department_tree" model="ir.ui.view">
|
|
|
|
<field name="name">hr.department.tree</field>
|
|
|
|
<field name="model">hr.department</field>
|
|
|
|
<field name="field_parent">child_ids</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Companies">
|
|
|
|
<field name="complete_name"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
|
|
<field name="manager_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_department_filter" model="ir.ui.view">
|
|
|
|
<field name="name">Departments</field>
|
|
|
|
<field name="model">hr.department</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Departments">
|
|
|
|
<field name="name" string="Department"/>
|
|
|
|
<field name="manager_id" />
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="open_module_tree_department" model="ir.actions.act_window">
|
|
|
|
<field name="name">Departments</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="search_view_id" ref="view_department_filter"/>
|
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click to create a department.
|
|
|
|
</p><p>
|
|
|
|
OpenERP's department structure is used to manage all documents
|
|
|
|
related to employees by departments: expenses, timesheets,
|
|
|
|
leaves and holidays, recruitments, etc.
|
|
|
|
</p>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<menuitem action="open_module_tree_department" id="menu_hr_department_tree" parent="hr.menu_hr_configuration" sequence="5"/>
|
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|