From 7d9f02cc996bb38c4822a8ff58fd9f49e68f8b7d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 15 Jan 2013 17:54:25 +0530 Subject: [PATCH] added job application --- hr/doctype/job_applicant/get_job_applications.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hr/doctype/job_applicant/get_job_applications.py b/hr/doctype/job_applicant/get_job_applications.py index e5805ac6b3..a11a6191d0 100644 --- a/hr/doctype/job_applicant/get_job_applications.py +++ b/hr/doctype/job_applicant/get_job_applications.py @@ -44,9 +44,11 @@ class JobsMailbox(POP3Mailbox): applicant.doc.status = "Open" applicant.doc.save() else: + name = (mail.from_real_name and (mail.from_real_name + "-" or "")) \ + + mail.from_email applicant = webnotes.model_wrapper({ "doctype":"Job Applicant", - "applicant_name": mail.from_real_name or mail.from_email, + "applicant_name": name, "email_id": mail.from_email, "status": "Open" })