added job application

This commit is contained in:
Rushabh Mehta 2013-01-15 17:36:36 +05:30
parent 84e360562d
commit 73f84176f0
2 changed files with 8 additions and 11 deletions

View File

@ -2,19 +2,12 @@
cur_frm.cscript = {
refresh: function(doc) {
cur_frm.set_intro("");
if(doc.extract_emails) {
cur_frm.set_intro(wn._("Active: Will extract emails from ") + doc.email_id);
} else {
cur_frm.set_intro(wn._("Not Active"));
}
cur_frm.cscript.make_listing(doc);
},
make_listing: function(doc) {
var wrapper = cur_frm.fields_dict['thread_html'].wrapper;
cur_frm.communication_view = new wn.views.CommunicationList({
list: comm_list,
parent: wn.model.get("Communication", {"job_applicant": doc.name}),
list: wn.model.get("Communication", {"job_applicant": doc.name}),
parent: cur_frm.fields_dict['thread_html'].wrapper,
doc: doc,
recipients: doc.email_id
})

View File

@ -2,7 +2,11 @@
from __future__ import unicode_literals
import webnotes
from utilities.transaction_base import TransactionBase
class DocType:
class DocType(TransactionBase):
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
self.doc, self.doclist = d, dl
def onload(self):
self.add_communication_list()