diff --git a/document_url/static/src/js/url.esm.js b/document_url/static/src/js/url.esm.js index 0ccda253..6d4bd8b8 100644 --- a/document_url/static/src/js/url.esm.js +++ b/document_url/static/src/js/url.esm.js @@ -29,6 +29,18 @@ registerPatch({ }, }); +registerPatch({ + name: "Chatter", + recordMethods: { + /** + * Handles click on the attach button. + */ + async onClickButtonAddAttachments() { + await this.onClickButtonToggleAttachments(); + }, + }, +}); + patch(AttachmentCard.prototype, "document_url/static/src/js/url.js", { /** * Return the url of the attachment. Temporary attachments, a.k.a. uploading diff --git a/document_url/static/src/xml/url.xml b/document_url/static/src/xml/url.xml index 4e75a91d..568a2378 100644 --- a/document_url/static/src/xml/url.xml +++ b/document_url/static/src/xml/url.xml @@ -70,16 +70,4 @@ - - - - - -