diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index c6834a3b715298c9a099698d4cdc62300e8da324..b0ab780cff0a2876f48e302e28c832284d7366fc 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -387,16 +387,14 @@ class Root(object): for module in os.listdir(addons_path): if module not in addons_module: manifest_path = os.path.join(addons_path, module, '__openerp__.py') - path_controllers = os.path.join(addons_path, module, 'controllers') - if os.path.isfile(manifest_path) and os.path.isdir(path_controllers): + path_static = os.path.join(addons_path, module, 'static') + if os.path.isfile(manifest_path) and os.path.isdir(path_static): manifest = ast.literal_eval(open(manifest_path).read()) _logger.info("Loading %s", module) m = __import__(module) addons_module[module] = m addons_manifest[module] = manifest - - statics['/%s/static' % module] = \ - os.path.join(addons_path, module, 'static') + statics['/%s/static' % module] = path_static for k, v in controllers_class.items(): if k not in controllers_object: o = v()