[IMP] document_page_partner: pre-commit auto fixes

This commit is contained in:
Luis Rodriguez 2025-01-07 13:17:52 +01:00 committed by Bhavesh Heliconia
parent 9b7dec58e7
commit bd2584ab3d

View File

@ -1,9 +1,9 @@
/** @odoo-module **/
import {AttachmentList} from "@mail/core/common/attachment_list";
import {Chatter} from "@mail/core/web/chatter";
import {patch} from "@web/core/utils/patch";
import {url} from "@web/core/utils/urls";
import {AttachmentList} from "@mail/core/common/attachment_list";
patch(Chatter.prototype, {
_onAddUrl(event) {
@ -50,11 +50,12 @@ patch(AttachmentList.prototype, {
* Return the url of the attachment. Temporary attachments, a.k.a. uploading
* attachments, do not have an url.
*
* @param {Object} attachment
* @returns {String}
*/
canDownload(attachment) {
return (
super.canDownload(attachment) && attachment.mimetype != "application/link"
super.canDownload(attachment) && attachment.mimetype !== "application/link"
);
},
get attachmentUrl() {