From 56ed9e67f646feb24464e48d2cd9391425295720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 24 Jul 2024 18:11:27 +0200 Subject: [PATCH] [FIX] dms_field: Show the correct image (same as kanban view) of the files in the right panel Fixes https://github.com/OCA/dms/issues/351 --- dms_field/static/src/views/dms_list/dms_list_controller.esm.js | 2 ++ dms_field/static/src/views/dms_list/dms_list_renderer.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dms_field/static/src/views/dms_list/dms_list_controller.esm.js b/dms_field/static/src/views/dms_list/dms_list_controller.esm.js index 019837ef4..04de6b451 100644 --- a/dms_field/static/src/views/dms_list/dms_list_controller.esm.js +++ b/dms_field/static/src/views/dms_list/dms_list_controller.esm.js @@ -315,6 +315,7 @@ export const DMSListControllerObject = { file.permission_write && (!file.is_locked || file.is_lock_editor), perm_unlink: file.permission_unlink && (!file.is_locked || file.is_lock_editor), + icon_url: file.icon_url, }); var dt = this.makeDataPoint({ data: data, @@ -413,6 +414,7 @@ export const DMSListControllerObject = { "permission_create", "permission_write", "permission_unlink", + "icon_url", "name", "mimetype", "directory_id", diff --git a/dms_field/static/src/views/dms_list/dms_list_renderer.xml b/dms_field/static/src/views/dms_list/dms_list_renderer.xml index bbf5e3b2a..49933e1c2 100644 --- a/dms_field/static/src/views/dms_list/dms_list_renderer.xml +++ b/dms_field/static/src/views/dms_list/dms_list_renderer.xml @@ -58,7 +58,7 @@ >