[FIX] http: no auto-load for modules not installable

Closes #8289
This commit is contained in:
Stéphane Bidoul 2015-08-30 10:46:15 +02:00 committed by Olivier Dony
parent 097fbd3941
commit 8d58d985dd
1 changed files with 2 additions and 0 deletions

View File

@ -1302,6 +1302,8 @@ class Root(object):
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())
if not manifest.get('installable', True):
continue
manifest['addons_path'] = addons_path
_logger.debug("Loading %s", module)
if 'openerp.addons' in sys.modules: