Community mailing list archives

community@mail.odoo.com

Re: Issue Show HTML view on Website

by
Md. Tanzilul Hasan Khan
- 08/27/2016 10:59:21
Sorry, I found the solution. I did silly mistake. Should use - 

<span t-esc = 'website.imprint_html'/>

Regards.

On Sat, Aug 27, 2016 at 8:50 PM, MD Tanzilul Hasan Khan <ponkhi403@gmail.com> wrote:
I have a field at backend which is fields.Html type . I am trying to show it on frontend of website. But It isn't showing

py:
imprint_html = fields.Html('Imprint Text')

xml:
<span t-esc = 'imprint_html'/>
<span t-raw = 'imprint_html'/>

I tried, t-esc, t-raw to call the field but the content is not showing up.

Can anyone please suggest a solution?

--
MD. Tanzilul Hasan Khan.



--
MD. Tanzilul Hasan Khan.