diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-04-27 17:04:09 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-05-04 11:58:25 +0200 |
| commit | 0bc70b64a9dda8aa22aabebf1cb9859f7d8d1de3 (patch) | |
| tree | f0cb862d008ce2b439f2e991680eef1d5fbc740d /addons | |
| parent | c6a0ff52f9727b18f888d6bf8a16c6fdca88d021 (diff) | |
[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.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/gamification/views/badge.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/gamification/views/badge.xml b/addons/gamification/views/badge.xml index 6fd705955c3..42e4cb7b3e9 100644 --- a/addons/gamification/views/badge.xml +++ b/addons/gamification/views/badge.xml @@ -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> |
