[FIX] gamification: put the correct id in kanban_image

The third argument of kanban_image should be the id of the record and not the
image `raw_value`.

In this case, we want to display the image field of the current model.
This commit is contained in:
Martin Geubelle
2017-05-04 11:58:25 +02:00
parent c6a0ff52f9
commit 0bc70b64a9
+2 -1
View File
@@ -97,6 +97,7 @@
<field name="model">gamification.badge</field>
<field name="arch" type="xml">
<kanban class="o_kanban_badge">
<field name="id"/>
<field name="name"/>
<field name="description"/>
<field name="image"/>
@@ -111,7 +112,7 @@
<t t-name="kanban-box">
<div t-attf-class="o_kanban_gamification oe_kanban_global_click #{record.stat_my.raw_value ? 'oe_kanban_color_5' : 'oe_kanban_color_white'}">
<div class="o_kanban_image">
<img t-att-src="kanban_image('gamification.badge', 'image', record.image.raw_value)" t-att-title="record.name.value"/>
<img t-att-src="kanban_image('gamification.badge', 'image', record.id.raw_value)" t-att-title="record.name.value"/>
</div>
<div class="oe_kanban_details">
<strong><field name="name"/></strong>