From 5afe27095f09d13040e4dcb9d27be9419da1f246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 14 Nov 2012 12:11:04 +0100 Subject: [PATCH] [FIX] mail_followes: signature addition is back, wrong var name. bzr revid: tde@openerp.com-20121114111104-0jyqh2v0tk7zznc1 --- addons/mail/mail_followers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 2942dde9b92..8d3876ec91f 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -158,9 +158,9 @@ class mail_notification(osv.Model): body_html = msg.body # if quote_context: # body_html = tools.append_content_to_html(body_html, quote_context, plaintext=False) - signature = msg.author_id and msg.author_id.user_id and msg.author_id.user_ids[0].signature or '' + signature = msg.author_id and msg.author_id.user_ids and msg.author_id.user_ids[0].signature or '' if signature: - body_html = tools.append_content_to_html(body_html, tools.text2html(signature), plaintext=False) + body_html = tools.append_content_to_html(body_html, signature, plaintext=True, container_tag='div') mail_values = { 'mail_message_id': msg.id,