summaryrefslogtreecommitdiff
path: root/odoo/tools/mail.py
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-02-15 15:05:36 +0000
committerNicolas Lempereur <nle@odoo.com>2021-02-16 13:21:33 +0000
commit5e093b7a37984c8cc5aa73d1c0f7aa9c9345e6b1 (patch)
treeff3d9bb023bd1113bb4d019b8b8933a7494be081 /odoo/tools/mail.py
parentd056feb4ac885acc6c829c57531b985027d94daf (diff)
[FIX] base: mail signature CSS inlined for icons etc
The mail signature of an user did not inline the CSS like the body of a message, so for example icons seemed to work but would not be seen (unless the mail reader had the same font-awesome system). With this change we inline the signature too. On edition there was also an issue since the original icon was saved as data-class which was stripped: so eg. when editing a mail.message with working icon, the icons would disappear. opw-2453912 closes odoo/odoo#66264 X-original-commit: a723bcbebbbc3a526cf63f28b66f53b8be3fe76e Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'odoo/tools/mail.py')
-rw-r--r--odoo/tools/mail.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py
index 026976e112b..a97c853ebd8 100644
--- a/odoo/tools/mail.py
+++ b/odoo/tools/mail.py
@@ -38,6 +38,7 @@ safe_attrs = clean.defs.safe_attrs | frozenset(
'data-o-mail-quote', # quote detection
'data-oe-model', 'data-oe-id', 'data-oe-field', 'data-oe-type', 'data-oe-expression', 'data-oe-translation-id', 'data-oe-nodeid',
'data-publish', 'data-id', 'data-res_id', 'data-interval', 'data-member_id', 'data-scroll-background-ratio', 'data-view-id',
+ 'data-class',
])