diff --git a/erpnext/projects/doctype/ticket/ticket.py b/erpnext/projects/doctype/ticket/ticket.py index b048425ebda..4d3e988f117 100644 --- a/erpnext/projects/doctype/ticket/ticket.py +++ b/erpnext/projects/doctype/ticket/ticket.py @@ -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
\ + Project:%s
Review Date:%s
Closing Date:%s
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]]) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index f742de4b4f4..5e7f74667a2 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py @@ -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]])