mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 06:58:27 +00:00
Ignore mandatory during email pulling
This commit is contained in:
@@ -21,6 +21,7 @@ class JobsMailbox(POP3Mailbox):
|
||||
applicant = frappe.bean("Job Applicant", name)
|
||||
if applicant.doc.status!="Rejected":
|
||||
applicant.doc.status = "Open"
|
||||
applicant.ignore_permissions = True
|
||||
applicant.doc.save()
|
||||
else:
|
||||
name = (mail.from_real_name and (mail.from_real_name + " - ") or "") \
|
||||
@@ -32,6 +33,8 @@ class JobsMailbox(POP3Mailbox):
|
||||
"email_id": mail.from_email,
|
||||
"status": "Open"
|
||||
})
|
||||
applicant.ignore_permissions = True
|
||||
applicant.ignore_mandatory = True
|
||||
applicant.insert()
|
||||
|
||||
mail.save_attachments_in_doc(applicant.doc)
|
||||
|
||||
Reference in New Issue
Block a user