[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
This commit is contained in:
parent
494c0f8bca
commit
326506db2c
|
@ -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 = {
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
<field name="subject" placeholder="Subject..."/>
|
||||
</group>
|
||||
<field name="body"/>
|
||||
<field name="body" widget='html'/>
|
||||
<field name="attachment_ids" widget="many2many_binary"/>
|
||||
<footer>
|
||||
<button string="Send" name="send_mail" type="object" class="oe_highlight"/>
|
||||
|
|
Loading…
Reference in New Issue