task notification fix
This commit is contained in:
parent
16aacdfeeb
commit
2a59030e05
@ -137,6 +137,6 @@ def sent_reminder_task():
|
||||
<p>Good Luck!</p>
|
||||
<p>(This notification is autogenerated)</p>""" % i
|
||||
sendmail(i['allocated_to'], sender='automail@webnotestech.com', msg=msg2,send_now=1, \
|
||||
subject='A task has been assigned')
|
||||
subject='A task has been assigned')
|
||||
sql("update `tabTicket` set sent_reminder='1' where name='%(name)s' and allocated_to= '%(allocated_to)s'" % i)
|
||||
|
||||
|
@ -110,7 +110,7 @@ class DocType:
|
||||
<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')
|
||||
subject='A task has been assigned')
|
||||
|
||||
|
||||
|
||||
@ -213,7 +213,7 @@ class DocType:
|
||||
""" Add calendar event for task in calendar of Allocated person"""
|
||||
event = Document('Event')
|
||||
event.owner = self.doc.allocated_to
|
||||
event.description =''
|
||||
event.description = self.doc.name
|
||||
event.event_date = self.doc.exp_start_date and self.doc.exp_start_date or ''
|
||||
event.event_hour = self.doc.event_hour and self.doc.event_hour or '10:00'
|
||||
event.event_type = 'Private'
|
||||
|
@ -5,14 +5,14 @@
|
||||
{
|
||||
'creation': '2011-01-28 17:52:35',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-12-23 12:02:29',
|
||||
'modified': '2011-12-26 11:56:35',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': '1324619022',
|
||||
'_last_update': '1324880734',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'TIC/.####',
|
||||
'colour': 'White:FFF',
|
||||
@ -26,7 +26,7 @@
|
||||
'show_in_menu': 0,
|
||||
'subject': '%(subject)s',
|
||||
'tag_fields': 'status',
|
||||
'version': 252
|
||||
'version': 254
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
@ -137,15 +137,6 @@
|
||||
'trigger': 'Client'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'task_email_notify',
|
||||
'fieldtype': 'Check',
|
||||
'label': 'Sent Mail Notification',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
@ -274,6 +265,15 @@
|
||||
'trigger': 'Client'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'task_email_notify',
|
||||
'fieldtype': 'Check',
|
||||
'label': 'Sent Mail Notification',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
|
Loading…
Reference in New Issue
Block a user