[IMP]Improved write method.

bzr revid: bth@tinyerp.com-20130822092903-34y8e3i2435klsn9
This commit is contained in:
bth-openerp
2013-08-22 14:59:03 +05:30
parent ef21f58651
commit ac2e155456
+1 -1
View File
@@ -405,7 +405,7 @@ class hr_applicant(osv.Model):
# stage change: update date_last_stage_update
vals['date_last_stage_update'] = fields.datetime.now()
vals['last_stage_id'] = data.stage_id.id
super(hr_applicant, self).write(cr, uid, ids, vals, context=context)
super(hr_applicant, self).write(cr, uid, data.id, vals, context=context)
return True
def create_employee_from_applicant(self, cr, uid, ids, context=None):