Odoo Help

Welcome!

This community 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.

0

Add sanitize = False attribute to field.

By
Dairidi
on 6/30/15, 3:49 AM 1,282 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.


Regards,
Flo


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/30/15, 3:49 AM
Seen: 1282 times
Last updated: 7/7/15, 6:41 AM