mirror of https://github.com/OCA/social.git
Update mail_outbound_static/models/ir_mail_server.py
Co-authored-by: Alexandre Fayolle <alexandre.fayolle@camptocamp.com>pull/539/head
parent
f29343a527
commit
bab57660d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue