تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
9496 أدوات العرض

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
مارس 16
3367
0
ديسمبر 15
4400
1
يوليو 15
3483
1
أكتوبر 22
6787
2
أغسطس 22
14243