From 326506db2c5115644eacf43dd266d28b068af338 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 11 Apr 2013 20:22:26 +0200 Subject: [PATCH 1/3] [FIX] mail: mail composer: Use a text field instead of a html field html fields are sanitized just before saving data into the database. In the composer, this cause the sanitization of the templated message (for mass mailing messages) before the rendering, forbidding the use of templated html links. The html of the message is sanitized by message_post() bzr revid: chs@openerp.com-20130411182226-lwnpkh4tmyswjjnc --- addons/mail/wizard/mail_compose_message.py | 1 + addons/mail/wizard/mail_compose_message_view.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 301dff515b3..16cfc99c513 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -116,6 +116,7 @@ class mail_compose_message(osv.TransientModel): 'mail_compose_message_ir_attachments_rel', 'wizard_id', 'attachment_id', 'Attachments'), 'filter_id': fields.many2one('ir.filters', 'Filters'), + 'body': fields.text('Contents'), } _defaults = { diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml index 00ba33a6d6f..73c16713718 100644 --- a/addons/mail/wizard/mail_compose_message_view.xml +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -30,7 +30,7 @@ - +