[FIX] modules: do not log warnings for studio_customization
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user