<field name="model">hr.recruitment.report</field>
<field name="type">tree</field>
<field name="arch" type="xml">
- <tree string="Recruitments Statistics">
+ <tree string="Recruitment Analysis">
<field name="date" invisible="1"/>
<field name="user_id" invisible="1"/>
- <field name="job_id" invisible="1"/>
- <field name="stage_id" invisible="1" widget="selection"/>
+ <field name="job_id"/>
+ <field name="stage_id" invisible="1" />
<field name="department_id" invisible="1"/>
<field name="type_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
- <field name="partner_address_id" invisible="1"/>
- <field name="company_id" groups="base.group_multi_company"/>
+ <field name="company_id" groups="base.group_multi_company" invisible="1"/>
<field name="state" invisible="1"/>
<field name="year" invisible="1"/>
<field name="day" invisible="1"/>
<field name="month" invisible="1"/>
- <field name="nbr" sum="# Cases"/>
- <field name="salary_prop" sum="Salary Proposed" />
- <field name="salary_exp" sum="Salary Expected"/>
+ <field name="nbr" sum="# of Applications"/>
<field name="available" sum="Available"/>
+ <field name="salary_exp" sum="Expected Salary"/>
+ <field name="salary_exp_avg" sum="Avg Expected Salary" />
+ <field name="salary_prop" sum="Proposed Salary" />
+ <field name="salary_prop_avg" sum="Avg Proposed Salary" />
+ <field name="delay_close" avg='Avg Delay to Close'/>
+ <field name="priority"/>
</tree>
</field>
</record>
<field name="model">hr.recruitment.report</field>
<field name="type">graph</field>
<field name="arch" type="xml">
- <graph string="Recruitments Statistics" type="bar">
+ <graph string="Recruitment Analysis" type="bar">
<field name="job_id"/>
<field name="nbr" operator="+"/>
</graph>
<field name="model">hr.recruitment.report</field>
<field name="type">search</field>
<field name="arch" type="xml">
- <search string="Recruitments">
- <group>
- <filter icon="terp-hr" string="This Year"
- domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
- help="Tasks performed in this year"/>
- <filter icon="terp-hr" string="This Month"
- name="month"
- domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
- help="Tasks performed in this month"/>
- <filter icon="gtk-media-rewind"
- string=" 7 Days "
- separator="1"
- domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
- help="Tasks during last 7 days"/>
- <separator orientation="vertical"/>
- <filter string="Draft"
- icon="terp-hr"
- domain="[('state','=','draft')]"
- help = "Draft tasks"/>
- <filter string="Current"
- icon="terp-hr"
- domain="[('state', '=' ,'open')]"
- help = "In progress tasks"/>
- <filter string="Pending"
- icon="terp-hr"
- domain="[('state','=','pending')]"
- help = "Pending tasks"/>
- <separator orientation="vertical"/>
- <field name="department_id" widget="selection">
- <filter icon="terp-hr"
- string="My Recruitments "
- help="My Department Recruitments"
- domain="[('user_id','=',uid)]"/>
- <filter icon="terp-hr"
- string="Recruitments non assigned to departments"
- help="Recruitments non assigned to departments"
- domain="[('user_id','=',False)]"/>
- </field>
- <separator orientation="vertical"/>
- <field name="company_id" widget="selection" groups="base.group_multi_company"/>
- <field name="user_id" widget="selection">
- <filter icon="terp-hr"
- string="Recruitments non assigned"
- help="Recruitments non assigned"
- domain="[('user_id','=',False)]"/>
- </field>
- </group>
- <newline/>
- <group expand="1" string="Extended options..." colspan="10" col="12">
- <filter icon="terp-hr"
- string="Hired"
- name="done"
- domain="[('state','=','done')]"/>
- <separator orientation="vertical"/>
- <field name="date"/>
- <separator orientation="vertical"/>
+ <search string="Recruitment Analysis">
+ <filter string="New" icon="terp-document-new" domain="[('state','=','draft')]" help = "Draft recruitment"/>
+ <filter string="In progress" icon="terp-camera_test" domain="[('state', '=' ,'open')]" help = "In progress recruitment"/>
+ <filter string="Pending" icon="terp-gtk-media-pause" domain="[('state','=','pending')]" help = "Pending recruitment"/>
+ <filter string="Hired" icon="terp-camera_test" domain="[('state','=','done')]" help = "Hired employees"/>
+ <separator/>
+ <filter icon="terp-personal" string="My Recruitment" help="My Recruitment" domain="[('user_id','=',uid)]"/>
+ <field name="job_id"/>
+ <field name="department_id"/>
+ <field name="user_id" string="Responsible"/>
+ <group expand="0" string="Extended Filters...">
+ <!--field name="job_id"/-->
<field name="priority"/>
- <field name="stage_id" widget="selection"/>
- <field name="job_id" widget="selection"/>
- <newline/>
- <filter icon="terp-hr"
- string="Refused"
- domain="[('state','=','cancel')]"/>
- <separator orientation="vertical"/>
+ <field name="stage_id"/>
+ <field name="company_id" groups="base.group_multi_company"/>
+ <field name="date" string="Creation Date"/>
<field name="date_closed"/>
- <separator orientation="vertical"/>
- <field name="type_id" widget="selection"/>
- <field name="partner_id"/>
- <field name="partner_address_id"/>
</group>
- <newline/>
- <group expand="1" string="Group By ..." colspan="10" col="12">
- <filter string="User" name='User' icon="terp-hr" domain="[]" context="{'group_by':'user_id'}"/>
- <filter string="Company" icon="terp-hr" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
- <filter string="Partner" icon="terp-hr" domain="[]" context="{'group_by':'partner_id'}" />
- <filter string="Stage" icon="terp-hr" domain="[]" context="{'group_by':'stage_id'}" />
- <separator orientation="vertical"/>
- <filter string="Partner Contact Name" icon="terp-hr" domain="[]" context="{'group_by':'partner_address_id'}" />
- <filter string="Jobs" name="job" icon="terp-sale" domain="[]" context="{'group_by':'job_id'}"/>
- <filter string="Department" name="department" icon="terp-hr" domain="[]" context="{'group_by':'department_id'}"/>
- <filter string="Degree" name="degree" icon="terp-hr" domain="[]" context="{'group_by':'type_id'}"/>
- <separator orientation="vertical"/>
- <filter string="State" icon="terp-hr" domain="[]" context="{'group_by':'state'}"/>
- <filter string="Day" name = "day" icon="terp-hr" domain="[]" context="{'group_by':'day'}"/>
- <filter string="Month" icon="terp-hr" domain="[]" context="{'group_by':'month'}"/>
- <filter string="Year" icon="terp-hr" domain="[]" context="{'group_by':'year'}"/>
+ <group expand="1" string="Group By ...">
+ <filter string="Responsible" name='User' icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
+ <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
+ <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}" />
+ <filter string="Jobs" name="job" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'job_id'}"/>
+ <filter string="Department" name="department" icon="terp-personal+" domain="[]" context="{'group_by':'department_id'}"/>
+ <filter string="Degree" name="degree" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'type_id'}"/>
+ <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}" />
+ <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
+ <filter string="Day" name = "day" icon="terp-go-today" domain="[]" context="{'group_by':'day'}" help="Creation Date"/>
+ <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'month'}" help="Creation Date"/>
+ <filter string="Year" icon="terp-go-year" domain="[]" context="{'group_by':'year'}" help="Creation Date"/>
</group>
</search>
</field>
</record>
<record id="action_hr_recruitment_report_all" model="ir.actions.act_window">
- <field name="name">Recruitments</field>
+ <field name="name">Recruitment Analysis</field>
<field name="res_model">hr.recruitment.report</field>
<field name="view_type">form</field>
<field name="view_mode">tree,graph</field>
- <field name="context">{'search_default_month':1,'search_default_degree':1,'search_default_job':1,'group_by_no_leaf':1,'group_by':[]}</field>
+ <field name="context">{'search_default_year':1,'search_default_month':1,'search_default_department':1,'group_by_no_leaf':1,'group_by':[]}</field>
<field name="search_view_id" ref="view_hr_recruitment_report_search"/>
</record>
- <menuitem id="hr.menu_hr_reporting" name="Reporting" parent="hr.menu_hr_root" sequence="10"/>
- <menuitem action="action_hr_recruitment_report_all" id="menu_hr_recruitment_report_all" parent="hr.menu_hr_reporting" sequence="2"/>
+ <menuitem action="action_hr_recruitment_report_all" id="menu_hr_recruitment_report_all" parent="hr.menu_hr_reporting" sequence="0"/>
</data>
</openerp>