From bbc98169c3a0b18d69eaa5230343c64e5dedda53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 20 Mar 2013 13:16:33 +0100 Subject: [PATCH] [FIX] mail: notification emails were lacking references to their parent message. bzr revid: tde@openerp.com-20130320121633-plhgm5374w2koem1 --- addons/mail/mail_followers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 5d2a8966bb8..fe2362eecc0 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -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: