added job application
This commit is contained in:
parent
a9d4fb9a73
commit
7d9f02cc99
@ -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"
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user