Skip to content

Commit

Permalink
Merge PR #356 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 6, 2024
2 parents 3bdb538 + f839dd3 commit 915357c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dms_field/static/src/js/base/dms_tree_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ odoo.define("dms.DmsTreeController", function (require) {
"permission_create",
"permission_write",
"permission_unlink",
"icon_url",
"name",
"mimetype",
"directory_id",
Expand Down Expand Up @@ -463,6 +464,7 @@ odoo.define("dms.DmsTreeController", function (require) {
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
2 changes: 1 addition & 1 deletion dms_field/static/src/xml/preview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
>
<img
class="h-100 w-100"
t-attf-src="/web/image/dms.file/{{dms_object.data.id}}/image_256/256x256?crop=1"
t-att-src="dms_object.data.icon_url"
/>
</a>
</div>
Expand Down

0 comments on commit 915357c

Please sign in to comment.