Failing to force a manual update of the mail module would cause
all composer wizards to display html contents without the WYSIWYG
editor, making it mostly unusable for regular users. Users are
not expected to always force an update of all modules after
updating to the latest source code.
bzr revid: odo@openerp.com-
20130417081410-dwc33ymizlihvbng
message_pids = [partner.id for partner in compose.partner_ids]
partner_ids = [p_a_id]
self.assertEqual(compose.subject, '${object.name}', 'mail.compose.message subject incorrect')
- self.assertEqual(compose.body, '${object.description}', 'mail.compose.message body incorrect')
+ self.assertEqual(compose.body, '<p>${object.description}</p>', 'mail.compose.message body incorrect')
self.assertEqual(set(message_pids), set(partner_ids), 'mail.compose.message partner_ids incorrect')
# 2. Post the comment, get created message
'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'),
}
_defaults = {
</div>
<field name="subject" placeholder="Subject..."/>
</group>
- <field name="body" widget='html'/>
+ <field name="body"/>
<field name="attachment_ids" widget="many2many_binary"/>
<footer>
<button string="Send" name="send_mail" type="object" class="oe_highlight"/>