[IMP]Add tooltip pn previous_stage Group by and add that field in Recruitment analysis too.

bzr revid: bth@tinyerp.com-20130613054038-dql0vus9j2ti9mqf
This commit is contained in:
bth-openerp 2013-06-13 11:10:38 +05:30
parent 927f4db0e0
commit 1afc1b4b6e
3 changed files with 6 additions and 1 deletions

View File

@ -199,7 +199,7 @@
<filter string="Degree" domain="[]" context="{'group_by':'type_id'}"/>
<filter string="Availability" domain="[]" context="{'group_by':'availability'}"/>
<filter string="Appreciation" domain="[]" context="{'group_by':'priority'}"/>
<filter string="Previous Stage" context="{'group_by':'previous_stage'}"/>
<filter string="Previous Stage" help="Match this group by with a specific stage filter in order to analyse the recruitment process" context="{'group_by':'previous_stage'}"/>
<filter string="Stage" domain="[]" context="{'group_by':'stage_id'}"/>
<filter string="Source" domain="[]" context="{'group_by':'source_id'}"/>
<filter string="Creation Date" domain="[]" context="{'group_by':'create_date'}"/>

View File

@ -66,6 +66,7 @@ class hr_recruitment_report(osv.osv):
'available': fields.float("Availability"),
'delay_close': fields.float('Avg. Delay to Close', digits=(16,2), readonly=True, group_operator="avg",
help="Number of Days to close the project issue"),
'previous_stage': fields.char('Previous Stage', size=32),
}
_order = 'date desc'
def init(self, cr):
@ -89,6 +90,7 @@ class hr_recruitment_report(osv.osv):
s.department_id,
s.priority,
s.stage_id,
s.previous_stage,
sum(salary_proposed) as salary_prop,
(sum(salary_proposed)/count(*)) as salary_prop_avg,
sum(salary_expected) as salary_exp,
@ -110,6 +112,7 @@ class hr_recruitment_report(osv.osv):
s.company_id,
s.user_id,
s.stage_id,
s.previous_stage,
s.type_id,
s.priority,
s.job_id,

View File

@ -10,6 +10,7 @@
<field name="user_id" invisible="1"/>
<field name="job_id"/>
<field name="stage_id" invisible="1" />
<field name="previous_stage" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="type_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
@ -70,6 +71,7 @@
<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="Previous Stage" help="Match this group by with a specific stage filter in order to analyse the recruitment process" context="{'group_by':'previous_stage'}"/>
<filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}" />
<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"/>