[FIX] mail: notification emails were lacking references to their parent message.

bzr revid: tde@openerp.com-20130320121633-plhgm5374w2koem1
This commit is contained in:
Thibault Delavallée
2013-03-20 13:16:33 +01:00
parent 6039b80e3f
commit bbc98169c3
+5
View File
@@ -161,11 +161,16 @@ class mail_notification(osv.Model):
else:
email_from = msg.email_from
references = False
if msg.parent_id:
references = msg.parent_id.message_id
mail_values = {
'mail_message_id': msg.id,
'auto_delete': True,
'body_html': body_html,
'email_from': email_from,
'references': references,
}
email_notif_id = mail_mail.create(cr, uid, mail_values, context=context)
try: