diff --git a/document_url/static/src/js/url.esm.js b/document_url/static/src/js/url.esm.js index b11953e7043..2ecfb553696 100644 --- a/document_url/static/src/js/url.esm.js +++ b/document_url/static/src/js/url.esm.js @@ -52,6 +52,11 @@ patch(AttachmentList.prototype, { * * @returns {String} */ + canDownload(attachment) { + return ( + super.canDownload(attachment) && attachment.mimetype != "application/link" + ); + }, get attachmentUrl() { return url("/web/content", { id: this.attachment.id, diff --git a/document_url/static/src/xml/url.xml b/document_url/static/src/xml/url.xml index ce6793b61e5..be6b7ad3297 100644 --- a/document_url/static/src/xml/url.xml +++ b/document_url/static/src/xml/url.xml @@ -30,12 +30,6 @@ - - attachment.mimetype != 'application/link' -