[IMP] mail/wizard/mail_compose_message.py: add comment explaining why we use a text field for the body

bzr revid: chs@openerp.com-20130412132231-84wz56s2r4ordxw1
This commit is contained in:
Christophe Simonis 2013-04-12 15:22:31 +02:00
parent 8a7fad6b22
commit b2d6c80569
1 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,12 @@ class mail_compose_message(osv.TransientModel):
'mail_compose_message_ir_attachments_rel',
'wizard_id', 'attachment_id', 'Attachments'),
'filter_id': fields.many2one('ir.filters', 'Filters'),
# Replace `body` with a text field because html fields are sanitized
# just before saving data into the database. This cause the
# sanitization of the templated messages (for mass mailing messages)
# before the rendering, forbidding the use of templated html links.
# The html of the message will be sanitized by message_post()
'body': fields.text('Contents'),
}