Skip to Content
Menu
This question has been flagged
3 Replies
9743 Rodiniai

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?

Portretas
Atmesti

try to use widget="Html" in xml

widget="html"

Best Answer

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

   

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
6544
1
kov. 15
4143
1
vas. 21
13957
0
vas. 21
15
4
liep. 17
8317