Browse Source

update notification content

pull/117/head
Ivan Yelizariev 10 years ago
committed by Ildar Nasyrov
parent
commit
b8f2e124fe
No known key found for this signature in database GPG Key ID: D1FDACDF9B83578
  1. 6
      im_notif/im_notif_models.py

6
im_notif/im_notif_models.py

@ -74,7 +74,7 @@ class mail_notification(models.Model):
) )
author = message.author_id and message.author_id.name_get() author = message.author_id and message.author_id.name_get()
author = author and author[0][1] or message.email_from author = author and author[0][1] or message.email_from
body = html2plaintext(message.body)[:100] or ''
#body = html2plaintext(message.body)[:100] or ''
mtype = {'email': _('Email'), mtype = {'email': _('Email'),
'comment': _('Comment'), 'comment': _('Comment'),
'notification': _('System notification'), 'notification': _('System notification'),
@ -84,9 +84,9 @@ class mail_notification(models.Model):
'_____________________', '_____________________',
'_____________________', '_____________________',
'%s [FROM] %s' % (message.type, author), '%s [FROM] %s' % (message.type, author),
'[ABOUT] %s: %s' % (message.record_name or '', url)
'[ABOUT] %s: %s' % (message.subject or message.record_name or '', url)
] ]
im_text = im_text + body.split('\n')
#im_text = im_text + body.split('\n')
return im_text return im_text

Loading…
Cancel
Save