From 613448162a3594960e1b970dd73f7057767ff2a4 Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Fri, 2 Sep 2022 12:44:41 +0000 Subject: [PATCH] [IMP] mail: remove useless code in message edition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#99487 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/composer_view.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/addons/mail/static/src/models/composer_view.js b/addons/mail/static/src/models/composer_view.js index d50c4269034..dc8ab35ff52 100644 --- a/addons/mail/static/src/models/composer_view.js +++ b/addons/mail/static/src/models/composer_view.js @@ -240,20 +240,7 @@ registerModel({ */ onClickSaveLink(ev) { ev.preventDefault(); - if (!this.composer.canPostMessage) { - if (this.composer.hasUploadingAttachment) { - this.messaging.notify({ - message: this.env._t("Please wait while the file is uploading."), - type: 'warning', - }); - } - return; - } - if (this.messageViewInEditing) { - this.updateMessage(); - return; - } - this.postMessage(); + this.sendMessage(); }, /** * Called when clicking on "send" button.