Skip to content

Commit af546b7

Browse files
committed
[FIX] mass_mailing: properly background-color .o_mail_snippet_general
The "o_mail_snippet_general" class implies a background color but when coloring the snippet that color was applied to its parent. This ensures that the color is applied to .o_mail_snippet_general instead. closes odoo#71500 Related: odoo/enterprise#18619 Signed-off-by: David Monjoie (dmo) <[email protected]>
1 parent ce938b4 commit af546b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addons/mass_mailing/views/snippets_themes.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,10 @@
865865
data-selector=".note-editable > div:not(.o_layout), .note-editable .oe_structure > div, td, th"
866866
data-exclude=".o_mail_no_resize, .o_mail_no_options"/>
867867

868-
<div data-selector=".note-editable > div:not(.o_layout), .note-editable .oe_structure > div, td, td.o_mail_no_colorpicker div:first-child, th"
868+
<div data-selector=".note-editable > div:not(.o_layout),
869+
.note-editable .oe_structure > div:not(:has(> .o_mail_snippet_general)),
870+
.note-editable .oe_structure > div > .o_mail_snippet_general,
871+
td, td.o_mail_no_colorpicker div:first-child, th"
869872
data-exclude=".o_mail_no_colorpicker, .o_mail_no_options">
870873
<we-colorpicker string="Background Color"
871874
data-select-style="true"

0 commit comments

Comments
 (0)