[16.0][FIX]document_url: fix Not working properly when "web_responsive" is installed

This commit is contained in:
Demchuk Mykola 2024-02-13 23:41:42 +02:00 committed by Bhavesh Heliconia
parent 256801adec
commit 4246cc0e47
2 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -70,16 +70,4 @@
</a>
</xpath>
</t>
<t t-inherit="mail.ChatterTopbar" t-inherit-mode="extension" owl="1">
<xpath
expr="//button[hasclass('o_ChatterTopbar_buttonAddAttachments')]"
position="replace"
/>
<xpath
expr="//button[hasclass('o_ChatterTopbar_buttonToggleAttachments')]"
position="attributes"
>
<attribute name="t-if" />
</xpath>
</t>
</templates>