Skip to content

Commit

Permalink
[FIX] mail: missing user attribute
Browse files Browse the repository at this point in the history
Allow customization to retrieve the user used to authenticate by adding
the user attribute.

opw-4059147

closes odoo#174208

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
  • Loading branch information
mwath committed Jul 23, 2024
1 parent 188f019 commit 9daefd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/models/ir_mail_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, server, port, encryption, context=None):
SMTP_ATTRIBUTES = [
'auth', 'auth_cram_md5', 'auth_login', 'auth_plain', 'close', 'data', 'docmd', 'ehlo', 'ehlo_or_helo_if_needed',
'expn', 'from_filter', 'getreply', 'has_extn', 'login', 'mail', 'noop', 'putcmd', 'quit', 'rcpt', 'rset',
'send_message', 'sendmail', 'set_debuglevel', 'smtp_from', 'starttls', 'verify', '_host',
'send_message', 'sendmail', 'set_debuglevel', 'smtp_from', 'starttls', 'user', 'verify', '_host',
]
for name in SMTP_ATTRIBUTES:
setattr(SMTPConnection, name, make_wrap_property(name))
Expand Down

0 comments on commit 9daefd0

Please sign in to comment.