Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
9488 Visninger

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


Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 16
3367
0
dec. 15
4399
1
jul. 15
3481
1
okt. 22
6785
2
aug. 22
14242