diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index a6be245194e..453ee936b84 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -291,8 +291,8 @@ class Website(Home): suggested_controllers = [] for name, url, mod in current_website.get_suggested_controllers(): if needle.lower() in name.lower() or needle.lower() in url.lower(): - module = mod and request.env.ref('base.module_%s' % mod, False) - icon = mod and " " % (module and module.icon or mod) or '' + module_sudo = mod and request.env.ref('base.module_%s' % mod, False).sudo() + icon = mod and " " % (module_sudo and module_sudo.icon or mod) or '' suggested_controllers.append({ 'value': url, 'label': '%s%s (%s)' % (icon, url, name),