mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
added job_applicant, job_opening doctypes
This commit is contained in:
0
hr/doctype/job_applicant/__init__.py
Normal file
0
hr/doctype/job_applicant/__init__.py
Normal file
8
hr/doctype/job_applicant/job_applicant.py
Normal file
8
hr/doctype/job_applicant/job_applicant.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import webnotes
|
||||||
|
|
||||||
|
class DocType:
|
||||||
|
def __init__(self, d, dl):
|
||||||
|
self.doc, self.doclist = d, dl
|
||||||
84
hr/doctype/job_applicant/job_applicant.txt
Normal file
84
hr/doctype/job_applicant/job_applicant.txt
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"owner": "Administrator",
|
||||||
|
"docstatus": 0,
|
||||||
|
"creation": "2013-01-15 16:32:13",
|
||||||
|
"modified_by": "Administrator",
|
||||||
|
"modified": "2013-01-15 16:32:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"autoname": "field:applicant_name",
|
||||||
|
"description": "Applicant for a Job",
|
||||||
|
"doctype": "DocType",
|
||||||
|
"module": "HR",
|
||||||
|
"document_type": "Transaction",
|
||||||
|
"name": "__common__"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "__common__",
|
||||||
|
"parent": "Job Applicant",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"permlevel": 0,
|
||||||
|
"parentfield": "fields"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parent": "Job Applicant",
|
||||||
|
"read": 1,
|
||||||
|
"cancel": 1,
|
||||||
|
"name": "__common__",
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"write": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
|
"permlevel": 0,
|
||||||
|
"parentfield": "permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Job Applicant",
|
||||||
|
"doctype": "DocType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Applicant Name",
|
||||||
|
"fieldname": "applicant_name",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"reqd": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Status",
|
||||||
|
"fieldname": "status",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"options": "Open\nReject\nHold"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"width": "50%",
|
||||||
|
"fieldname": "column_break_3",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Job Opening",
|
||||||
|
"fieldname": "job_opening",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Job Opening"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "section_break_5",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Thread HTML",
|
||||||
|
"fieldname": "thread_html",
|
||||||
|
"fieldtype": "HTML"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocPerm"
|
||||||
|
}
|
||||||
|
]
|
||||||
0
hr/doctype/job_opening/__init__.py
Normal file
0
hr/doctype/job_opening/__init__.py
Normal file
8
hr/doctype/job_opening/job_opening.py
Normal file
8
hr/doctype/job_opening/job_opening.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import webnotes
|
||||||
|
|
||||||
|
class DocType:
|
||||||
|
def __init__(self, d, dl):
|
||||||
|
self.doc, self.doclist = d, dl
|
||||||
66
hr/doctype/job_opening/job_opening.txt
Normal file
66
hr/doctype/job_opening/job_opening.txt
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"owner": "Administrator",
|
||||||
|
"docstatus": 0,
|
||||||
|
"creation": "2013-01-15 16:13:36",
|
||||||
|
"modified_by": "Administrator",
|
||||||
|
"modified": "2013-01-15 16:13:36"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Description of a Job Opening",
|
||||||
|
"doctype": "DocType",
|
||||||
|
"module": "HR",
|
||||||
|
"document_type": "Transaction",
|
||||||
|
"name": "__common__"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "__common__",
|
||||||
|
"parent": "Job Opening",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"permlevel": 0,
|
||||||
|
"parentfield": "fields"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"parent": "Job Opening",
|
||||||
|
"read": 1,
|
||||||
|
"cancel": 1,
|
||||||
|
"name": "__common__",
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"write": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
|
"permlevel": 0,
|
||||||
|
"parentfield": "permissions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Job Opening",
|
||||||
|
"doctype": "DocType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Job Title",
|
||||||
|
"fieldname": "job_title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"reqd": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Status",
|
||||||
|
"fieldname": "status",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"options": "Open\nClosed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Job profile, qualifications required etc.",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Description",
|
||||||
|
"fieldname": "description",
|
||||||
|
"fieldtype": "Text Editor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocPerm"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -37,6 +37,8 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
time_to_sec(timediff(now(), lastupdate)) < 1800")
|
time_to_sec(timediff(now(), lastupdate)) < 1800")
|
||||||
|
|
||||||
def process_message(self, mail):
|
def process_message(self, mail):
|
||||||
|
if mail.from_email == self.email_settings.fields.get('support_email'):
|
||||||
|
return
|
||||||
thread_id = mail.get_thread_id()
|
thread_id = mail.get_thread_id()
|
||||||
ticket = None
|
ticket = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user