added job application

This commit is contained in:
Rushabh Mehta 2013-01-15 17:54:25 +05:30
parent a9d4fb9a73
commit 7d9f02cc99

View File

@ -44,9 +44,11 @@ class JobsMailbox(POP3Mailbox):
applicant.doc.status = "Open" applicant.doc.status = "Open"
applicant.doc.save() applicant.doc.save()
else: else:
name = (mail.from_real_name and (mail.from_real_name + "-" or "")) \
+ mail.from_email
applicant = webnotes.model_wrapper({ applicant = webnotes.model_wrapper({
"doctype":"Job Applicant", "doctype":"Job Applicant",
"applicant_name": mail.from_real_name or mail.from_email, "applicant_name": name,
"email_id": mail.from_email, "email_id": mail.from_email,
"status": "Open" "status": "Open"
}) })