groups="base.group_hr_manager,base.group_hr_user,base.group_user"/>
<menuitem id="menu_hr_main" parent="menu_hr_root" name="Human Resources" sequence="0"/>
<menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_manager" sequence="50"/>
- <menuitem id="menu_hr_management" name="Human Resources" parent="hr.menu_hr_configuration" sequence="25" groups="base.group_no_one"/>
- <menuitem id="menu_view_employee_category_configuration_form" parent="hr.menu_hr_management" name="Employees" sequence="1" />
- <menuitem id="base.menu_hr_reports" parent="hr.menu_hr_root" sequence="40" name="Reporting"/>
+ <menuitem id="menu_hr_management" name="Human Resources" parent="hr.menu_hr_configuration" sequence="25"/>
- <!--
- ==========
- Employee
- ==========
- -->
+ <!--Employee form view -->
<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">
<form string="Employee" version="7.0">
<sheet>
- <div class="oe_right oe_form_button_box">
+ <div class="oe_right oe_button_box">
<!-- Put here related buttons -->
</div>
- <field class="oe_right" name="photo" widget='image' on_change="onchange_photo(photo)"/>
- <div class="oe_form_title">
- <label for="name" class="oe_form_readonly_hidden"/>
+ <field class="oe_right" name="image_small" widget='image' on_change="onchange_image(image_small)"/>
+ <div class="oe_title">
+ <label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
- <label for="department_id" class="oe_form_readonly_hidden"/>
- <h2>
- <field name="company_id" widget="selection" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>,
- <field name="department_id" on_change="onchange_department_id(department_id)" />
- </h2>
+
+ <label for="company_id" class="oe_edit_only" groups="base.group_multi_company"/>
+ <h2><field name="company_id" widget="selection" on_change="onchange_company(company_id)" groups="base.group_multi_company"/></h2>
+
+ <label for="department_id" class="oe_edit_only"/>
+ <h2><field name="department_id" on_change="onchange_department_id(department_id)"/></h2>
</div>
<notebook>
<page string="Personal Information">
<group>
- <group>
+ <group string="General">
<field name="user_id" on_change="onchange_user(user_id)"/>
<field name="active"/>
- <field name="parent_id" />
+ <field name="parent_id"/>
</group>
<group groups="base.group_hr_user" string="Social IDs">
<field name="identification_id"/>
</group>
<group string="Contact Information">
<field name="address_home_id"/>
- <field name="address_id" on_change="onchange_address_id(address_id)" />
+ <field name="address_id" on_change="onchange_address_id(address_id)"/>
<field name="work_phone"/>
<field name="mobile_phone"/>
- <field name="work_email" widget="email" />
+ <field name="work_email" widget="email"/>
<field name="work_location"/>
</group>
<group string="Job Information">
- <field name="job_id" domain="[('state','!=','old')]"/>
- <field name="coach_id" />
+ <field name="job_id" domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
+ <field name="coach_id"/>
</group>
</group>
</page>
<page string="Categories" groups="base.group_hr_user">
- <field name="category_ids" colspan="4" nolabel="1" widget="many2many_tags"/>
+ <field name="category_ids" widget="many2many_tags"/>
</page>
<page string="Notes" groups="base.group_hr_user">
<field name="notes"/>
<field name="department_id"/>
<field name="job_id"/>
<field name="parent_id"/>
- <field name="coach_id" invisible="1" />
+ <field name="coach_id" invisible="1"/>
</tree>
</field>
</record>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Employees">
- <field name="name"/>
- <field name="department_id" widget="selection">
- </field>
+ <field name="name" string="Employees"/>
+ <separator orientation="vertical"/>
+ <field name="department_id" widget="selection"/>
<field name="job_id" widget="selection"/>
- <field name="category_ids"/>
<field name="parent_id"/>
- <newline />
+ <field name="category_ids"/>
+ <newline/>
<group expand="0" string="Group By...">
- <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
- <filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
- <separator orientation="vertical" />
- <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"/>
+ <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'parent_id'}"/>
+ <filter string="Coach" icon="terp-personal" domain="[]" context="{'group_by':'coach_id'}"/>
+ <separator orientation="vertical"/>
+ <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"/>
</group>
</search>
</field>
<t t-name="kanban-box">
<div class="oe_employee_vignette">
<div class="oe_employee_image">
- <a type="edit"><img t-att-src="kanban_image('hr.employee', 'photo', record.id.value)" class="oe_employee_picture"/></a>
+ <a type="edit"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_picture"/></a>
</div>
<div class="oe_employee_details">
<h4><a type="edit"><field name="name"/> (<field name="login"/>)</a></h4>
<ul>
- <li t-if="record.last_login.raw_value">
+ <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%%">
<t t-esc="record.last_login.raw_value.toString('HH:mm')"/>
</span>
<field name="company_id" groups="base.group_multi_company"/>
<field name="department_id"/>
<field name="job_id"/>
- <field name="coach_id" invisible="1" />
+ <field name="coach_id" invisible="1"/>
</tree>
</field>
</record>
<field name="arch" type="xml">
<form string="Employee Category" version="7.0">
<group>
- <field name="name" />
- <field name="parent_id" />
+ <field name="name"/>
+ <field name="parent_id"/>
</group>
</form>
</field>
</record>
<menuitem action="open_view_categ_form" id="menu_view_employee_category_form"
- parent="hr.menu_hr_configuration" sequence="1"/>
+ parent="hr.menu_hr_configuration" sequence="1" groups="base.group_no_one"/>
<record id="open_view_categ_tree" model="ir.actions.act_window">
<field name="name">Categories Structure</field>
<field name="arch" type="xml">
<form string="Job" version="7.0">
<header>
- <button name="job_recruitement" string="In Recruitement" states="open" type="object"/>
- <button name="job_open" string="In Position" states="old,recruit" type="object"/>
- <button name="job_old" string="Mark as Old" states="open,recruit" type="object"/>
+ <span groups="base.group_user">
+ <button name="job_recruitement" string="In Recruitement" states="open" type="object"/>
+ <button name="job_open" string="Recruitment Done" states="recruit" type="object"/>
+ </span>
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
</header>
<sheet>
- <group col="4">
- <field name="name" />
- <field name="department_id" />
- <field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)"/>
- <field name="no_of_employee"/>
- <field name="expected_employees"/>
- <field name="company_id" widget="selection" groups="base.group_multi_company"/>
+ <group>
+ <group>
+ <field name="name"/>
+ <field name="department_id"/>
+ <field name="company_id" widget="selection" groups="base.group_multi_company"/>
+ </group>
+ <group>
+ <field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)"/>
+ <field name="no_of_employee"/>
+ <field name="expected_employees"/>
+ </group>
</group>
<notebook>
<page string="Description">
- <separator string="Job Description"/>
+ <label for="description"/>
<field name="description"/>
- <separator string="Requirements"/>
+ <label for="requirements"/>
<field name="requirements"/>
</page>
- <page string="Employees">
+ <page string="Employees" groups="base.group_user">
<field name="employee_ids" widget="many2many" mode="tree,form"/>
</page>
</notebook>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Job">
- <field name="name" />
- <field name="department_id" />
+ <field name="name"/>
+ <field name="department_id"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="expected_employees"/>
<field name="no_of_employee"/>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Jobs">
+ <field name="name" string="Job"/>
+ <separator orientation="vertical"/>
<filter icon="terp-camera_test"
domain="[('state','=','open')]"
string="In Position"
<filter icon="terp-personal+" domain="[('state','=','recruit')]" string="In Recruitment"
help="In Recruitment"/>
<separator orientation="vertical"/>
- <field name="name"/>
- <field name="department_id" widget="selection">
- </field>
+ <field name="department_id" widget="selection"/>
<newline />
<group expand="0" string="Group By...">
- <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
- <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
- <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
+ <filter string="Department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
+ <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
+ <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
</group>
</search>
</field>
<field name="type">form</field>
<field name="priority">20</field>
<field name="arch" type="xml">
- <form string="Job">
- <field name="name" />
- <field name="department_id" />
- <newline/>
- <notebook colspan="4">
- <page string="Description">
- <separator colspan="4" string="Job Description"/>
- <field name="description" colspan="4" nolabel="1"/>
- </page>
- </notebook>
+ <form string="Job" version="7.0">
+ <group col="4">
+ <field name="name"/>
+ <field name="department_id"/>
+ </group>
+ <label for="description"/>
+ <field name="description"/>
</form>
</field>
</record>
</record>
<menuitem name="Recruitment" id="base.menu_crm_case_job_req_main" parent="menu_hr_root" groups="base.group_hr_user"/>
- <menuitem parent="hr.menu_hr_management" id="menu_hr_job" action="action_hr_job" sequence="6"/>
+ <menuitem parent="hr.menu_hr_configuration" id="menu_hr_job" action="action_hr_job" sequence="6"/>
</data>
</openerp>