Update mail_outbound_static/models/ir_mail_server.py

Co-authored-by: Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
pull/539/head
Yogesh Mahera 2020-08-20 11:40:03 +05:30 committed by GitHub
parent f29343a527
commit bab57660d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class IrMailServer(models.Model):
email_from = mail_server.smtp_from
message.replace_header('From', email_from)
bounce_alias = self.env['ir.config_parameter'].get_param(
bounce_alias = self.env['ir.config_parameter'].sudo().get_param(
"mail.bounce.alias")
if not bounce_alias:
# then, bounce handling is disabled and we want