[FIX] mail: alias domain should be fetch as superuser

as ir.config.parameter has limited access
This commit is contained in:
Denis Ledoux 2014-09-10 17:25:56 +02:00
parent c3c8276b0f
commit 2684b7de4c
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class mail_thread(osv.AbstractModel):
model = context.get('empty_list_help_model')
res_id = context.get('empty_list_help_id')
ir_config_parameter = self.pool.get("ir.config_parameter")
catchall_domain = ir_config_parameter.get_param(cr, uid, "mail.catchall.domain", context=context)
catchall_domain = ir_config_parameter.get_param(cr, SUPERUSER_ID, "mail.catchall.domain", context=context)
document_name = context.get('empty_list_help_document_name', _('document'))
alias = None