From 4366b88d60c55aa82e4cac8ee9722e6ab44e803c Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Wed, 5 Aug 2020 13:56:23 +0000 Subject: [PATCH] [FIX] mail: hide rating button in chatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the rating buttons were displayed inside the chatter an could be used to "rate" from there. Intend is to display these buttons only on email: the message in chatter should not have these buttons. This commit fixes the problem similarly to what has been done in 13.3. Note that this solution is quite poor, because it could remove content from other messages that inadvertently hit this CSS selector, but at least it works for all existing rating messages. task-2282414 closes odoo/odoo#55591 X-original-commit: 4474adef45be3289728edc289ecc71c38abcf1b8 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/components/message/message.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index ebb04174383..6501c9581dd 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -356,3 +356,10 @@ .o_Message_sidebarItem.o-message-squashed { display: none; } + +// Used to hide buttons on rating emails in chatter +// FIXME: should use a better approach for not having such buttons +// in chatter of such messages, but keep having them in emails. +.o_Message_content [summary~="o_mail_notification"] { + display: none; +}