[IMP] hr_recruitment : Duplicating an existing Application should put it back into 'Initial Qualification' stage.
bzr revid: mdi@tinyerp.com-20121123072554-y3lbrmgs23qri8bx
This commit is contained in:
@@ -243,6 +243,12 @@ class hr_applicant(base_stage, osv.Model):
|
||||
'stage_id': _read_group_stage_ids
|
||||
}
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default.update({'stage_id': self._get_default_stage_id(cr, uid, context=context)})
|
||||
return super(hr_applicant, self).copy(cr, uid, id, default, context=context)
|
||||
|
||||
def onchange_job(self, cr, uid, ids, job, context=None):
|
||||
result = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user