From 7213ee5527262c0ed366defb16e716f2bd4062a4 Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Tue, 14 Dec 2021 13:50:53 +0000 Subject: [PATCH] [FIX] mail: user can't edit notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2713602 closes odoo/odoo#81520 X-original-commit: 80b394568d79960b2d7aa92609975a98ff84182a Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/message/message.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/models/message/message.js b/addons/mail/static/src/models/message/message.js index ca1b715b399..b02cb739c20 100644 --- a/addons/mail/static/src/models/message/message.js +++ b/addons/mail/static/src/models/message/message.js @@ -317,8 +317,11 @@ registerModel({ if (this.tracking_value_ids.length > 0) { return false; } + if (this.message_type !== 'comment') { + return false; + } if (this.originThread.model === 'mail.channel') { - return this.message_type === 'comment'; + return true; } return this.is_note; },