mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-13 15:34:49 -06:00
[16.0][FIX]document_url: fix Not working properly when "web_responsive" is installed
This commit is contained in:
parent
256801adec
commit
4246cc0e47
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user