コンテンツへスキップ
メニュー
この質問にフラグが付けられました
9478 ビュー

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


アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 16
3365
0
12月 15
4387
1
7月 15
3475
1
10月 22
6783
2
8月 22
14239