[FIX] web_kanban: correct image url generation

This commit is contained in:
Christophe Simonis
2015-08-25 12:07:52 +02:00
parent 6c51a80aa4
commit 848709276f
@@ -125,7 +125,8 @@ var KanbanRecord = Widget.extend({
} else if (this.record[field] && ! this.record[field].value) {
url = "/web/static/src/img/placeholder.png";
} else {
id = JSON.stringify(id);
if (_.isArray(id)) { id = id[0]; }
if (!id) { id = undefined; }
if (options.preview_image)
field = options.preview_image;
var unique = this.record.__last_update.value.replace(/[^0-9]/g, '');