콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5702 화면


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"/>

<templates>

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

<div class="oe_product_vignette">

<field name="name"/>

<field name="detailed_map"/>

<field name="google_map"/>

</div>

</t>

<t t-raw="google_map"/>

</templates>

</kanban>

</field>

</record>

Kind regards,

Alex

아바타
취소
작성자 베스트 답변

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"/>

아바타
취소