Skip to content

Commit

Permalink
[FIX] dms_field: Show the correct image (same as kanban view) of the …
Browse files Browse the repository at this point in the history
…files in the right panel

Fixes #351
  • Loading branch information
victoralmau committed Jul 25, 2024
1 parent 384008a commit 56ed9e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -413,6 +414,7 @@ export const DMSListControllerObject = {
"permission_create",
"permission_write",
"permission_unlink",
"icon_url",
"name",
"mimetype",
"directory_id",
Expand Down
2 changes: 1 addition & 1 deletion dms_field/static/src/views/dms_list/dms_list_renderer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
>
<img
class="h-100 w-100"
t-attf-src="/web/image/dms.file/{{nodeSelectedState.data.data.id}}/image_256/256x256?crop=1"
t-att-src="nodeSelectedState.data.data.icon_url"
/>
</a>
</div>
Expand Down

0 comments on commit 56ed9e6

Please sign in to comment.