added job application
This commit is contained in:
parent
b6f6d68de0
commit
a9d4fb9a73
@ -34,6 +34,9 @@ class JobsMailbox(POP3Mailbox):
|
|||||||
return name and name[0][0] or None
|
return name and name[0][0] or None
|
||||||
|
|
||||||
def process_message(self, mail):
|
def process_message(self, mail):
|
||||||
|
if mail.from_email == self.settings.email_id:
|
||||||
|
return
|
||||||
|
|
||||||
name = self.get_existing_application(mail.from_email)
|
name = self.get_existing_application(mail.from_email)
|
||||||
if name:
|
if name:
|
||||||
applicant = webnotes.model_wrapper("Job Applicant", name)
|
applicant = webnotes.model_wrapper("Job Applicant", name)
|
||||||
|
@ -13,4 +13,8 @@ class DocType(TransactionBase):
|
|||||||
|
|
||||||
def on_communication_sent(self, comm):
|
def on_communication_sent(self, comm):
|
||||||
webnotes.conn.set(self.doc, 'status', 'Replied')
|
webnotes.conn.set(self.doc, 'status', 'Replied')
|
||||||
|
|
||||||
|
def on_trash(self):
|
||||||
|
webnotes.conn.sql("""delete from `tabCommunication`
|
||||||
|
where job_applicant=%s""", self.doc.name)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user