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

Hi, I have added a new field in Purchase Order form. This field is a function type field which generates and returns HTML. When I placed this field in Purchase Order form view, the HTML is not rendering. Rather its showing the HTML as output. How can we show the rendered HTML?

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

try to use widget="Html" in xml

widget="html"

Câu trả lời hay nhất

Hello sajjad,

Take a field of type text,

body_html = fields.Html(string='Html')

then in form view 

<field name="body_html" widget="html"/>

And also you take reference from payment Acquirer

Please refer the link,

https://prnt.sc/suvh5l

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
6495
1
thg 3 15
4124
1
thg 2 21
13915
0
thg 2 21
15
4
thg 7 17
8285