[IMP] base: remove length of pass and user fields of ir.mail_server

Indeed in some cases those could be longer than 64 characters. As
there is no real constraint let us drop the limit to simplify it.

Closes #17269 .
This commit is contained in:
Yenthe V.G
2017-05-29 16:34:43 +02:00
committed by Thibault Delavallée
parent e06b039642
commit c8d132f751
+2 -2
View File
@@ -142,8 +142,8 @@ class IrMailServer(models.Model):
name = fields.Char(string='Description', required=True, index=True)
smtp_host = fields.Char(string='SMTP Server', required=True, help="Hostname or IP of SMTP server")
smtp_port = fields.Integer(string='SMTP Port', size=5, required=True, default=25, help="SMTP Port. Usually 465 for SSL, and 25 or 587 for other cases.")
smtp_user = fields.Char(string='Username', size=64, help="Optional username for SMTP authentication")
smtp_pass = fields.Char(string='Password', size=64, help="Optional password for SMTP authentication")
smtp_user = fields.Char(string='Username', help="Optional username for SMTP authentication")
smtp_pass = fields.Char(string='Password', help="Optional password for SMTP authentication")
smtp_encryption = fields.Selection([('none', 'None'),
('starttls', 'TLS (STARTTLS)'),
('ssl', 'SSL/TLS')],