Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
9961 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 16
3677
0
thg 12 15
4806
1
thg 7 15
3793
1
thg 10 22
7180
2
thg 8 22
14706