From aa7fb8c72317e330bbeb6ce29b4aace8627ef1d7 Mon Sep 17 00:00:00 2001 From: XavierDo Date: Tue, 20 Mar 2018 16:22:02 +0100 Subject: [PATCH] [IMP] mail: add warning when partner email is invalid Change the border and cross color of a recipient in mail composer when the email is invalid (doesn't contains "@"). When sending an mail from composer the user will see easily if an email adress is invalid and will cause a NO_VALID_RECIPIENT error. Task: #46158 PR: #24628 --- addons/mail/static/src/xml/composer.xml | 11 +++++++++-- addons/web/static/src/scss/fields.scss | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/xml/composer.xml b/addons/mail/static/src/xml/composer.xml index bb9321a749d..d09b6bc4f22 100644 --- a/addons/mail/static/src/xml/composer.xml +++ b/addons/mail/static/src/xml/composer.xml @@ -79,8 +79,15 @@ - - + + + + + + + + + diff --git a/addons/web/static/src/scss/fields.scss b/addons/web/static/src/scss/fields.scss index 0fd69037b0b..2a35c33005a 100644 --- a/addons/web/static/src/scss/fields.scss +++ b/addons/web/static/src/scss/fields.scss @@ -173,6 +173,12 @@ } } } + } + > .o_tag_error{ + box-shadow: inset 0 0 0 2px #FF0000; + > .o_delete { + color: #FF0000; + } } }