Merge PR #460 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot 2024-02-18 23:35:17 +00:00
commit ce2fcbf0d1
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>