[IMP]hr_recruitment : solve the problem of double statusbar

bzr revid: cha@tinyerp.com-20120704121523-70o02dlup5c7txbt
This commit is contained in:
Ajay Chauhan (OpenERP)
2012-07-04 17:45:23 +05:30
parent f5f8cb037b
commit 8d98896e0d
-2
View File
@@ -257,8 +257,6 @@ class hr_applicant(base_stage, osv.Model):
return {'value': {'department_id': False}}
def onchange_department_id(self, cr, uid, ids, department_id=False, context=None):
if not department_id:
return {'value': {'stage_id': False}}
obj_recru_stage = self.pool.get('hr.recruitment.stage')
stage_ids = obj_recru_stage.search(cr, uid, ['|',('department_id','=',department_id),('department_id','=',False)], context=context)
stage_id = stage_ids and stage_ids[0] or False