[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) <tde@openerp.com>
This commit is contained in:
asa-odoo
2020-08-24 09:08:32 +00:00
committed by Dharmraj Jhala
parent 41471bb0ab
commit 63248ff378
+2 -3
View File
@@ -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,
}
}