This commit is contained in:
Nijil Y 2011-12-21 16:20:39 +05:30
parent 07b03fbe09
commit f800dc02f1
2 changed files with 4 additions and 3 deletions

View File

@ -69,8 +69,9 @@ class DocType:
def on_update(self):
if (self.doc.status =='Open') and (self.doc.task_email_notify==1):
msg2= 'A task %s has been assigned to you by %s on %s \n%s Project:%s \t Review Date:%s\nClosing Date:%s Details \n %s' \
%(self.doc.name,self.doc.senders_name,self.doc.opening_date," ",self.doc.project, \
msg2= 'A task %s has been assigned to you by %s on %s <br/> \
Project:%s <br/> Review Date:%s <br /> Closing Date:%s <br /> Details %s' \
%(self.doc.name,self.doc.senders_name,self.doc.opening_date,self.doc.project, \
self.doc.review_date,self.doc.closing_date,self.doc.description)
sendmail(self.doc.allocated_to, sender='automail@webnotestech.com', \
subject='A task has been assigned', parts=[['text/plain',msg2]])

View File

@ -350,7 +350,7 @@ class DocType:
send_email_notification(doc_type,doc_name)
def send_email_notification(self,doc_type,doc_name)
email_list=[d for d in sql("select from tabUserRole where role in ('Purchase Manager','Material Manager') ")]
email_list=[d for d in sql("select parent from tabUserRole where role in ('Purchase Manager','Material Manager') ")]
msg1='An Indent has been raised for item %s: %s on %s '%(doc_type, doc_name, nowdate())
sendmail(email_list, sender='automail@webnotestech.com', \
subject='Auto Indent Generation Notification', parts=[['text/plain',msg1]])