[IMP]prev_stage to previous_stage,Refused stage to refused applicants and previous stage is moved near stage in group by.
bzr revid: bth@tinyerp.com-20130612070008-9lfr2nxnvm5k6epu
This commit is contained in:
parent
6dd40c518b
commit
927f4db0e0
|
@ -236,7 +236,7 @@ class hr_applicant(base_stage, osv.Model):
|
|||
'color': fields.integer('Color Index'),
|
||||
'emp_id': fields.many2one('hr.employee', 'employee'),
|
||||
'user_email': fields.related('user_id', 'email', type='char', string='User Email', readonly=True),
|
||||
'prev_stage': fields.char('Previous Stage',size=32),
|
||||
'previous_stage': fields.char('Previous Stage', size=32),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
@ -256,7 +256,7 @@ class hr_applicant(base_stage, osv.Model):
|
|||
def write(self, cr, uid, ids, vals, context=None):
|
||||
for data in self.browse(cr, uid, ids, context=context):
|
||||
if vals.get('stage_id'):
|
||||
vals['prev_stage'] = data.stage_id.name
|
||||
vals['previous_stage'] = data.stage_id.name
|
||||
return super(hr_applicant, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
def onchange_job(self, cr, uid, ids, job, context=None):
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<tree string="Applicants" fonts="bold:message_unread==True" colors="grey:state in ('cancel','done');blue:state=='pending'">
|
||||
<field name="message_unread" invisible="1"/>
|
||||
<field name="prev_stage" invisible="1"/>
|
||||
<field name="previous_stage" invisible="1"/>
|
||||
<field name="create_date"/>
|
||||
<field name="name" string="Subject"/>
|
||||
<field name="partner_name"/>
|
||||
|
@ -187,19 +187,19 @@
|
|||
<separator/>
|
||||
<filter string="Next Actions" context="{'invisible_next_action':False, 'invisible_next_date':False}"
|
||||
domain="[('date_action','<>',False)]" help="Filter and view on next actions and date"/>
|
||||
<filter string="Refused" help="Refused Stage" domain="[('state','=','cancel')]"/>
|
||||
<filter string="Refused" help="Refused Applicants" domain="[('state','=','cancel')]"/>
|
||||
<field name="job_id"/>
|
||||
<field name="user_id"/>
|
||||
<separator/>
|
||||
<field name="categ_ids"/>
|
||||
<group expand="0" string="Group By...">
|
||||
<filter string="Previous Stage" context="{'group_by':'prev_stage'}"/>
|
||||
<filter string="Responsible" domain="[]" context="{'group_by':'user_id'}"/>
|
||||
<filter string="Department" domain="[]" context="{'group_by':'department_id'}"/>
|
||||
<filter string="Job" domain="[]" context="{'group_by':'job_id'}"/>
|
||||
<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="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'}"/>
|
||||
|
|
Loading…
Reference in New Issue