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

I have a custom field defined as Html type with santitize=False, and the user belongs to the group "Bypass HTML Field Sanitize", but, the output is not printed on the page using pure HTML, it's surrounded by quotes, so it just prints the Html code and not the resulting Html.  I'm using Odoo 16.0 community version.


I've attached the code to create the field, the code to display the field in a template, and, the result. I've tried using t-out, t-raw, t-esc, all same results.  I know that the correct way in V16 is to use t-out, but, it still does not work.  I've added screens showing all.

https://myperformancehall.com/web/content/ir.attachment/1430/datas?download=true


Ảnh đại diện
Huỷ bỏ