コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
9686 ビュー

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
6517
1
3月 15
4129
1
2月 21
13927
0
2月 21
15
4
7月 17
8289