[11.0][FIX] mail_drop_target: Add sudo on config_param

pull/503/head
Enric Tobella 2020-01-20 17:23:33 +01:00
parent d4f72d0aa7
commit a544c27bc5
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class MailThread(models.AbstractModel):
save_original=False, strip_attachments=False,
thread_id=None):
disable_notify_mail_drop_target = \
self.env["ir.config_parameter"].get_param(
self.env["ir.config_parameter"].sudo().get_param(
"mail_drop_target.disable_notify", default=False)
self_message_process = self
if disable_notify_mail_drop_target: