diff --git a/erpnext/projects/doctype/project_control/project_control.py b/erpnext/projects/doctype/project_control/project_control.py index 42a9ba3d629..6d41ea95dc0 100644 --- a/erpnext/projects/doctype/project_control/project_control.py +++ b/erpnext/projects/doctype/project_control/project_control.py @@ -127,7 +127,7 @@ def sent_reminder_task(): 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="""
This is a reminder for the task %(name)s has been assigned to you by %(senders_name)s on %(opening_date)s
Project: %(project)s
diff --git a/erpnext/projects/doctype/ticket/ticket.py b/erpnext/projects/doctype/ticket/ticket.py index 5f299c337c6..b4f1a709231 100644 --- a/erpnext/projects/doctype/ticket/ticket.py +++ b/erpnext/projects/doctype/ticket/ticket.py @@ -72,9 +72,9 @@ class DocType: 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 @@ class DocType: #Sent Notification def sent_notification(self): - msg2="""This is an auto generated email.This is a Notification for the task %(name)s that has been assigned to you + by %(senders_name)s on %(opening_date)s
+Project: %(project)s
+Review Date: %(review_date)s
+Details: %(description)s
+You will also recieve another reminder 2 days before the commencement of the task
+Good Luck!
+(This notification is autogenerated)
""" % i sendmail(self.doc.allocated_to, sender='automail@webnotestech.com', msg=msg2,send_now=1,\ subject='A task has been assigned')