<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"/>
- <!--
- ==========
- 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>
<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')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
- <field name="coach_id" />
+ <field name="coach_id"/>
</group>
</group>
</page>
<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>
<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>
<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="Recruitment Done" states="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>
<group>
- <field name="name" />
- <field name="department_id" />
+ <field name="name"/>
+ <field name="department_id"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
</group>
<group>
<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="arch" type="xml">
<form string="Job" version="7.0">
<group col="4">
- <field name="name" />
- <field name="department_id" />
+ <field name="name"/>
+ <field name="department_id"/>
</group>
<label for="description"/>
<field name="description"/>