From 63248ff378c75d6e28a671cc6abfb2d9f9878b11 Mon Sep 17 00:00:00 2001 From: asa-odoo Date: Thu, 20 Aug 2020 12:29:48 +0000 Subject: [PATCH] [IMP] base: improve notification of successful mail server connection This commit improves the notification displayed when we configure the mail server and click 'Test Connection' button. It removes the title of the notification, improves the message string and changes the notification type to 'success' instead of default 'warning'. Task Id : 2321763 PR #56213 Signed-off-by: Thibault Delavallee (tde) --- odoo/addons/base/models/ir_mail_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/odoo/addons/base/models/ir_mail_server.py b/odoo/addons/base/models/ir_mail_server.py index f589b103a7c..a1a402e54fc 100644 --- a/odoo/addons/base/models/ir_mail_server.py +++ b/odoo/addons/base/models/ir_mail_server.py @@ -153,14 +153,13 @@ class IrMailServer(models.Model): # ignored, just a consequence of the previous exception pass - title = _("Connection Test Succeeded!") - message = _("Everything seems properly set up!") + message = _("Connection Test Successful!") return { 'type': 'ir.actions.client', 'tag': 'display_notification', 'params': { - 'title': title, 'message': message, + 'type': 'success', 'sticky': False, } }