diff --git a/addons/web_kanban/static/src/js/kanban_record.js b/addons/web_kanban/static/src/js/kanban_record.js index ee88d0a775a..473ebc59e98 100644 --- a/addons/web_kanban/static/src/js/kanban_record.js +++ b/addons/web_kanban/static/src/js/kanban_record.js @@ -129,7 +129,7 @@ var KanbanRecord = Widget.extend({ if (!id) { id = undefined; } if (options.preview_image) field = options.preview_image; - var unique = this.record.__last_update.value.replace(/[^0-9]/g, ''); + var unique = this.record.__last_update && this.record.__last_update.value.replace(/[^0-9]/g, ''); url = session.url('/web/image', {model: model, field: field, id: id, unique: unique}); if (cache !== undefined) { // Set the cache duration in seconds.