Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: ir.mail_server

Compute Method: _compute_smtp_authentication_info

Inputs Method Outputs
for server in self:
            if server.smtp_authentication == 'login':
                server.smtp_authentication_info = _(
                    'Connect to your server through your usual username and password. \n'
                    'This is the most basic SMTP authentication process and '
                    'may not be accepted by all providers. \n')
            elif server.smtp_authentication == 'certificate':
                server.smtp_authentication_info = _(
                    'Authenticate by using SSL certificates, belonging to your domain name. \n'
                    'SSL certificates allow you to authenticate your mail server for the entire domain name.')
            elif server.smtp_authentication == 'cli':
                server.smtp_authentication_info = _(
                    'Use the SMTP configuration set in the "Command Line Interface" arguments.')
            else:
                server.smtp_authentication = False

Back to entity