From 1db1446c60722d2c28fc2ff6e9d979c6ff25044e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 4 Nov 2015 17:10:26 +0100 Subject: [PATCH] [FIX] web_kanban: creation of a "team.user" When creating a team.user record, there was an error to generate an url for the image because the attribute "__last_update" didn't exist on the record. opw:653725 --- addons/web_kanban/static/src/js/kanban_record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.