summaryrefslogtreecommitdiff
path: root/odoo/modules/graph.py
diff options
context:
space:
mode:
authorXavier-Do <xdo@odoo.com>2020-01-21 17:25:55 +0000
committerXavier-Do <xdo@odoo.com>2020-01-22 17:33:32 +0000
commitcbab786eb2e153eb7eefbd994cb261fa96e56800 (patch)
tree1bbb00295e9a98f4243b062f307aa954ad736371 /odoo/modules/graph.py
parent576b26a974fe7a43ca5af70ad683e20f8dcf220f (diff)
[IMP] core: do not log error for unmet dependencies on add_modules
When migrating a database, load_marked_modules will be called multiple times, alternating to upgrade and to install modules. The main reason for this is still a litle confusing but it as the side effect to log "Unmet dependencies" error multiple time in add_modules, even if the dependency will be resolved later. This commit removes the error level for this log, and replace it by another check, performed at the end, logging any module in "to install"/"to upgrade" state. Also log removed module as info (25), not warning. This may be changed latter closes odoo/odoo#43797 X-original-commit: c5d6a3977de85fb974a4940fb11d54ef847e08e4 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'odoo/modules/graph.py')
-rw-r--r--odoo/modules/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/modules/graph.py b/odoo/modules/graph.py
index 33846fbd1ec..cb9a761cc51 100644
--- a/odoo/modules/graph.py
+++ b/odoo/modules/graph.py
@@ -94,7 +94,7 @@ class Graph(dict):
for package in later:
unmet_deps = [p for p in dependencies[package] if p not in self]
- _logger.error('module %s: Unmet dependencies: %s', package, ', '.join(unmet_deps))
+ _logger.info('module %s: Unmet dependencies: %s', package, ', '.join(unmet_deps))
return len(self) - len_graph