Odoo Help


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.


Help Required Injecting Html from fields.html into basic kanban view

Alexander Boden
on 4/27/15, 4:50 PM 591 views

I have a fields.html which is pre-formatted html (img for static google maps api).

I want to display this image inline in my kanban view, but I am finding it impossible.

I get the html text, but it is not being parsed. I have tried the following, but

I was wondering if the community could help me here:

<record model="ir.ui.view" id="g4e_base_map_kanban">

<field name="name">g4e_base.map.kanban</field>

<field name="model">g4e_base.map</field>

<field name="arch" type="xml">

<kanban class="oe_background_grey" create="false">

<field name="name"/>

<field name="detailed_map"/>

<field name="google_map"/>


<t t-name="kanban-box">

<div class="oe_product_vignette">

<field name="name"/>

<field name="detailed_map"/>

<field name="google_map"/>



<t t-raw="google_map"/>





Kind regards,


Alexander Boden
On 4/28/15, 12:38 AM

Not to worry, I answered my own question.

The way I was accessing my variable was incorrect.

I needed to do this:
<t t-raw="record.google_map.raw_value"/>

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)


Asked: 4/27/15, 4:50 PM
Seen: 591 times
Last updated: 4/28/15, 12:38 AM