From 15d9c31f6f1ab1c126d7ad7a58f5d724cab02e4d Mon Sep 17 00:00:00 2001 From: Benoit Date: Wed, 15 Feb 2017 11:37:29 +0100 Subject: [PATCH] [FIX] change pattern for mail footer because it changes is there is user signature or not --- mail_usability/mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_usability/mail.py b/mail_usability/mail.py index ded5f5f..154045f 100644 --- a/mail_usability/mail.py +++ b/mail_usability/mail.py @@ -47,6 +47,6 @@ class MailNotification(models.Model): footer = super(MailNotification, self).get_signature_footer( cr, uid, user_id, res_model=res_model, res_id=res_id, context=context, user_signature=user_signature) - footer = footer[:footer.find('\n\n
Sent by ')] - footer = footer[:footer.find(u'\n\n
Envoyé par ')] + footer = footer[:footer.find('\n
Sent by ')] + footer = footer[:footer.find(u'\n
Envoyé par ')] return footer