diff options
| author | Raphael Collet <rco@odoo.com> | 2017-04-13 11:13:57 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2017-04-13 12:17:05 +0200 |
| commit | 00e169c05a270a0943a74fbeb0a884009946c7cd (patch) | |
| tree | 33465c51dd3509a6326ed482d90643f41078e7da /odoo/modules | |
| parent | df60828488a702acb64757f518b4be12b7a95a04 (diff) | |
[FIX] modules: do not log warnings for `studio_customization`
Diffstat (limited to 'odoo/modules')
| -rw-r--r-- | odoo/modules/graph.py | 7 | ||||
| -rw-r--r-- | odoo/modules/module.py | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/odoo/modules/graph.py b/odoo/modules/graph.py index aaf90ae8443..ff2f99188fe 100644 --- a/odoo/modules/graph.py +++ b/odoo/modules/graph.py @@ -80,7 +80,7 @@ class Graph(dict): info = odoo.modules.module.load_information_from_description_file(module) if info and info['installable']: packages.append((module, info)) # TODO directly a dict, like in get_modules_with_version - else: + elif module != 'studio_customization': _logger.warning('module %s: not installable, skipped', module) dependencies = dict([(p, info['depends']) for p, info in packages]) @@ -112,10 +112,7 @@ class Graph(dict): unmet_deps = filter(lambda p: p not in self, dependencies[package]) _logger.error('module %s: Unmet dependencies: %s', package, ', '.join(unmet_deps)) - result = len(self) - len_graph - if result != len(module_list): - _logger.warning('Some modules were not loaded.') - return result + return len(self) - len_graph def __iter__(self): diff --git a/odoo/modules/module.py b/odoo/modules/module.py index ecf95be088b..d15df6dba59 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -302,7 +302,7 @@ def load_information_from_description_file(module, mod_path=None): :param mod_path: Physical path of module, if not providedThe name of the module (sale, purchase, ...) """ if not mod_path: - mod_path = get_module_path(module) + mod_path = get_module_path(module, downloaded=True) manifest_file = module_manifest(mod_path) if manifest_file: # default values for descriptor |
