Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

QWeb - How render comments?

By
Pyatak
on 12/9/14, 11:37 PM 1,005 views

How to render comments from QWeb template to the page of website?
That page contain like:

<!-- BlaBlaBla -->

3

Pyatak

--Pyatak--
1447
| 4 2 4
New York, United States
--Pyatak--

Base

Pyatak
On 12/11/14, 12:04 AM

After some experiment I found solution:

<t t-set="start_comment">&lt;!--</t>

<t t-set="end_comment">--&gt;</t>

<t t-raw="start_comment"></t>BlaBlaBla<t t-raw="end_comment"></t>

<t t-raw="start_comment"></t>BlaBlaBla<t t-raw="end_comment"></t>

Will render:

<!--BlaBlaBla-->

<!--BlaBlaBla-->

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/9/14, 11:37 PM
Seen: 1005 times
Last updated: 3/16/15, 8:10 AM