[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:
Divyesh Makwana (Open ERP)
2012-11-23 12:55:54 +05:30
parent 8b161d799e
commit 7a740bc897
+6
View File
@@ -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 = {}