Merge PR #582 into 13.0

Signed-off-by hbrunn
pull/584/head
OCA-git-bot 2020-07-29 12:49:00 +00:00
commit 95f0175da5
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ 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(
"mail.bounce.alias"
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