From d3e01308d042831bd19f22845cdd9b1466c6e9ac Mon Sep 17 00:00:00 2001 From: Invitu Date: Sat, 30 Jun 2018 15:08:07 -1000 Subject: [PATCH] [IMP] notification should be at the beginning of the body indeed --- mail_footer_notified_partner/models/mail_followers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mail_footer_notified_partner/models/mail_followers.py b/mail_footer_notified_partner/models/mail_followers.py index f3be14e1..d6bbc2f8 100644 --- a/mail_footer_notified_partner/models/mail_followers.py +++ b/mail_footer_notified_partner/models/mail_followers.py @@ -30,16 +30,17 @@ class MailNotification(models.Model): def _notify_send(self, body, subject, recipients, **mail_values): footer_recipients = self.env.context.get( 'notified_partners', recipients) or recipients - body += self.get_additional_footer(footer_recipients) + newbody = self.get_additional_footer(footer_recipients) + newbody += body return super(MailNotification, self).\ - _notify_send(body, subject, recipients, **mail_values) + _notify_send(newbody, subject, recipients, **mail_values) @api.model def get_additional_footer(self, recipients): recipients_name = [ recipient.name for recipient in recipients ] - additional_footer = u'
%s%s.
' % \ + additional_footer = u'
%s%s.
' % \ (_('Also notified: '), ', '.join(recipients_name)) return additional_footer