Odoo Help


Add sanitize = False attribute to field.

on 6/30/15, 3:49 AM 2,050 views

Hello everyone,

I want to add sanitize = False to a html field in mail.message.

My code looks like:

class add_sanitize_to_body(models.Model):
        _inherit = "mail.message"
        _columns = { 'body': fields.html('Contents', help ='Non sanitized HTML contents', sanitize = False)}

But my content always gets sanitized.
If I add the sanitize = False in mail.message to body it works?

I have no more idea what to try.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/30/15, 3:49 AM
Seen: 2050 times
Last updated: 6/1/17, 6:23 AM