~openerp-dev/openobject-addons/7.0-mail_issues-fix-adh-1168388

« back to all changes in this revision

Viewing changes to mail/wizard/invite.py

  • Committer: Anand Dharampuriya(OpenERP)
  • Date: 2014-06-05 08:57:07 UTC
  • Revision ID: adh@tinyerp.com-20140605085707-colagtssool34bly
[FIX] Mail: Solve Blank lines in signature and body are erased if you send a message 

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
                user_id = self.pool.get("res.users").read(cr, uid, [uid], fields=["signature"], context=context)[0]
66
66
                signature = user_id and user_id["signature"] or ''
67
67
                if signature:
68
 
                    wizard.message = tools.append_content_to_html(wizard.message, signature, plaintext=True, container_tag='div')
 
68
                    wizard.message = tools.append_content_to_html(wizard.message, signature, plaintext=True,  preserve=True, container_tag='div')
69
69
                # FIXME 8.0: use notification_email_send, send a wall message and let mail handle email notification + message box
70
70
                for follower_id in new_follower_ids:
71
71
                    mail_mail = self.pool.get('mail.mail')