跳至内容
菜单
此问题已终结
3 回复
9640 查看

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?

形象
丢弃

try to use widget="Html" in xml

widget="html"

最佳答案

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

   

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
6418
1
3月 15
4066
1
2月 21
13865
0
2月 21
15
4
7月 17
8255