email message fix for task
diff --git a/erpnext/projects/doctype/project_control/project_control.py b/erpnext/projects/doctype/project_control/project_control.py
index 42a9ba3..6d41ea9 100644
--- a/erpnext/projects/doctype/project_control/project_control.py
+++ b/erpnext/projects/doctype/project_control/project_control.py
@@ -127,7 +127,7 @@
and exp_start_date is not null""",as_dict=1)
for i in task_list:
if date_diff(i['exp_start_date'],nowdate()) ==2:
- msg2="""<h2>Two days to complete: %(name)s<h2>
+ msg2="""<h2>Two days to complete: %(name)s</h2>
<p>This is a reminder for the task %(name)s has been assigned to you
by %(senders_name)s on %(opening_date)s</p>
<p><b>Project:</b> %(project)s</p>
diff --git a/erpnext/projects/doctype/ticket/ticket.py b/erpnext/projects/doctype/ticket/ticket.py
index 5f299c3..b4f1a70 100644
--- a/erpnext/projects/doctype/ticket/ticket.py
+++ b/erpnext/projects/doctype/ticket/ticket.py
@@ -72,9 +72,9 @@
def on_update(self):
if self.doc.status =='Open' and self.doc.allocated_to:
if self.doc.task_email_notify and (self.doc.allocated_to != self.doc.allocated_to_old):
+ self.doc.sent_reminder = 0
self.doc.allocated_to_old = self.doc.allocated_to
self.sent_notification()
- self.doc.sent_reminder = 0
if self.doc.exp_start_date:
sql("delete from tabEvent where ref_type='Task' and ref_name=%s", self.doc.name)
self.add_calendar_event()
@@ -91,10 +91,15 @@
#Sent Notification
def sent_notification(self):
- msg2="""This is an auto generated email.<br/>A task %s has been assigned to you by %s on %s<br/><br/>\
- Project: %s <br/><br/>Review Date: %s<br/><br/>Closing Date: %s <br/><br/>Details: %s <br/><br/>""" \
- %(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)
+ msg2="""<h2>%(name)s</h2>
+ <p>This is a Notification for the task %(name)s that has been assigned to you
+ by %(senders_name)s on %(opening_date)s</p>
+ <p><b>Project:</b> %(project)s</p>
+ <p><b>Review Date:</b> %(review_date)s</p>
+ <p><b>Details:</b> %(description)s</p>
+ <p><b>You will also recieve another reminder 2 days before the commencement of the task</b></p>
+ <p>Good Luck!</p>
+ <p>(This notification is autogenerated)</p>""" % i
sendmail(self.doc.allocated_to, sender='automail@webnotestech.com', msg=msg2,send_now=1,\
subject='A task has been assigned')