From 4246cc0e47493eeb9df17e11c1a6315e190a888f Mon Sep 17 00:00:00 2001 From: Demchuk Mykola Date: Tue, 13 Feb 2024 23:41:42 +0200 Subject: [PATCH] [16.0][FIX]document_url: fix Not working properly when "web_responsive" is installed --- document_url/static/src/js/url.esm.js | 12 ++++++++++++ document_url/static/src/xml/url.xml | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) 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 @@ - - - - - -