Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
9672 Vues

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?

Avatar
Ignorer

try to use widget="Html" in xml

widget="html"

Meilleure réponse

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

   

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mars 15
6476
1
mars 15
4123
1
févr. 21
13900
0
févr. 21
15
4
juil. 17
8276