<openerp>
<data>
- <menuitem id="menu_hr_root" icon="terp-hr" name="Human Resources" sequence="15"
- web_icon="images/hr.png"
- web_icon_hover="images/hr-hover.png"
- groups="base.group_hr_manager,base.group_hr_user,base.group_user"/>
+ <!-- Top menu item -->
+ <menuitem name="Human Resources"
+ id="menu_hr_root"
+ groups="base.group_hr_manager,base.group_hr_user,base.group_user"
+ sequence="110"/>
<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"/>
+ <menuitem id="menu_hr_management" name="Human Resources" parent="hr.menu_hr_configuration" groups="base.group_no_one" sequence="25"/>
+ <menuitem id="menu_hr_reporting_timesheet" name="Reports"
+ parent="menu_hr_reporting" sequence="6" />
- <!--
- ==========
- 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>
- <field name="photo" widget='image' class="oe_right" on_change="onchange_photo(photo)"/>
- <div class="oe_right oe_button_box" name="button_box">
- <!-- Put here related buttons -->
- </div>
+ <field name="photo" widget='image' class="oe_right" on_change="onchange_photo(photo)"/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" class="oe_inline"/>
- <label class="oe_inline" string="," attrs="{'invisible': [('company_id', '=', False)]}" groups="base.group_multi_company"/>
- <field class="oe_inline" name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
- <label class="oe_inline" string="at" attrs="{'invisible': [('job_id', '=', False)]}"/>
+ <label class="oe_inline" string="," attrs="{'invisible': [('job_id', '=', False)]}"/>
<field class="oe_inline" name="job_id" domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
+ <label class="oe_inline" string="at" attrs="{'invisible': [('company_id', '=', False)]}" groups="base.group_multi_company"/>
+ <field class="oe_inline" name="company_id" groups="base.group_multi_company" on_change="onchange_company(company_id)"/>
</h1>
<label for="department_id" class="oe_edit_only"/>
<h2><field name="department_id" on_change="onchange_department_id(department_id)"/></h2>
<label for="category_ids" class="oe_edit_only"/>
<h3><field name="category_ids" widget="many2many_tags"/></h3>
</div>
+ <div class="oe_right oe_button_box" name="button_box">
+ <!-- Put here related buttons -->
+ </div>
<group colspan="4" col="4">
<field name="work_email" widget="email" />
<field name="work_phone"/>
</group>
<notebook>
<page string="Information">
- <group col="4">
- <group string="Linked User">
+ <group>
+ <group>
+ <field name="user_id" on_change="onchange_user(user_id)"/>
<field name="parent_id" />
<field name="coach_id"/>
</group>
<field name="identification_id" groups="base.group_hr_user"/>
<field name="passport_id" groups="base.group_hr_user"/>
<field name="otherid" groups="base.group_hr_user"/>
+ </group>
+ <group name="active_group">
<field name="active"/>
</group>
- <!-- <group string="General">
- <field name="user_id" on_change="onchange_user(user_id)"/>
- </group> -->
</group>
<field name="notes" placeholder="Other Information ..." colspan="4"/>
</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="arch" type="xml">
<search string="Employees">
<field name="name" string="Employees"/>
- <separator orientation="vertical"/>
- <field name="department_id" widget="selection"/>
- <field name="job_id" widget="selection"/>
+ <field name="department_id" />
+ <field name="job_id"/>
<field name="parent_id"/>
<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"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_employee_form"/>
<field name="act_window_id" ref="open_view_employee_list_my"/>
- </record>
+ </record>
<menuitem action="open_view_employee_list_my" id="menu_open_view_employee_list_my" sequence="3" parent="menu_hr_main"/>
<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_tree"
- id="menu_view_employee_category_tree" parent="menu_hr_management" sequence="2"/>
+ id="menu_view_employee_category_tree" parent="menu_hr_management" groups="base.group_no_one" sequence="2"/>
<record id="view_hr_job_form" model="ir.ui.view">
<field name="name">hr.job.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" class="oe_highlight"/>
+ <button name="job_open" string="Recruitment Done" states="recruit" type="object" class="oe_highlight"/>
+ </span>
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
</header>
<sheet>
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" class="oe_inline"/>
- (<field name="department_id" class="oe_inline"/>)
+ <label class="oe_inline" string="(" attrs="{'invisible': [('department_id', '=', False)]}"/>
+ <field name="department_id" class="oe_inline"/>
+ <label class="oe_inline" string=")" attrs="{'invisible': [('department_id', '=', False)]}"/>
</h1>
- <label for="employee_ids" class="oe_edit_only"/>
- <h2>
- <field name="employee_ids" widget="many2many_tags" mode="tree,form"/>
- </h2>
- <group col="4">
- <field name="company_id" widget="selection" groups="base.group_multi_company"/>
- <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>
+ <field name="no_of_employee"/>
+ <field name="expected_employees"/>
+ <field name="no_of_recruitment" on_change="on_change_expected_employee(no_of_recruitment,no_of_employee)"/>
+ </group>
+ <group>
+ <field name="company_id" widget="selection" groups="base.group_multi_company"/>
+ </group>
</group>
<notebook>
<page string="Description">
<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="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"
- help="In Position"/>
- <filter icon="terp-personal+" domain="[('state','=','recruit')]" string="In Recruitment"
- help="In Recruitment"/>
- <separator orientation="vertical"/>
- <field name="department_id" widget="selection"/>
- <newline />
+ <filter icon="terp-camera_test" domain="[('state','=','open')]" string="In Position" help="In Position"/>
+ <filter icon="terp-personal+" domain="[('state','=','recruit')]" string="In Recruitment" help="In Recruitment"/>
+ <field name="department_id"/>
<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'}"/>
</search>
</field>
</record>
-
+
<record id="view_hr_job_employee_form" model="ir.ui.view">
<field name="name">hr.job.employee.form</field>
<field name="model">hr.job</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"/>
</form>
</field>
</record>
-
+
<record model="ir.actions.act_window" id="action_hr_job">
<field name="name">Job Positions</field>
<field name="res_model">hr.job</field>