[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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user