diff options
| author | Didier (did) <did@odoo.com> | 2020-08-05 13:56:23 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2020-08-06 19:22:26 +0000 |
| commit | 4366b88d60c55aa82e4cac8ee9722e6ab44e803c (patch) | |
| tree | e2b9afd0a1f3920f19f6cc8a9663515a86ce2a49 /addons/mail/static/src/components/message/message.scss | |
| parent | bab20931099beda872aa17e5bb0ddd18cffd83ed (diff) | |
[FIX] mail: hide rating button in chatter
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) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/message/message.scss')
| -rw-r--r-- | addons/mail/static/src/components/message/message.scss | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |
