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.

1

Html field in odoo

By
Midhunmadhu
on 3/18/15, 6:44 AM 514 views

Hi,

How we can add datas in html fields. I have added some html data in that field. It doesn't seems to be look fine.

0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 3/18/15, 3:16 PM

Example:


<field name="body_html"><![CDATA[

<p>

Hello ${object.name},

</p>

<p>

You have been invited to validate your email in order to get access to "${object.company_id.name}" Q/A Forums.

</p>

<p>

To validate your email, please click on the following link:

</p>

<ul>

<li><a href="${ctx.get('token_url')}">Validate my account for "${object.company_id.name}" Q/A Forums</a></li>

</ul>

<p>

Thanks,

</p>

<pre>

--

${object.company_id.name or ''}

${object.company_id.email or ''}

${object.company_id.phone or ''}

</pre>]]>


</field>

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: 3/18/15, 6:44 AM
Seen: 514 times
Last updated: 3/23/15, 6:58 AM