From 79685b5bdf2b5f4e20876e11ea60e9876b966b69 Mon Sep 17 00:00:00 2001 From: xO-Tx Date: Thu, 10 Jun 2021 16:45:07 +0000 Subject: [PATCH] [FIX] tools: keep image option related attributes - Change an image option in mass mailing editor (e.g. Quality) - save - edit -> The option can't get the new applied value. The body_arch's field used in mass mailing editor is sanitizing attributes and as a consequence, option related data attrs are removed on save. task-2327045 closes odoo/odoo#72311 X-original-commit: 7c5666611363a73bc6fef070565039cf065a0176 Signed-off-by: Quentin Smetz (qsm) --- odoo/tools/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index 0dc0bf658e5..cf14de6208a 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -40,7 +40,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', 'data-mimetype', + 'data-class', 'data-mimetype', 'data-original-src', 'data-original-id', 'data-gl-filter', 'data-quality', 'data-resize-width', ])