summaryrefslogtreecommitdiff
path: root/openerp/modules/graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'openerp/modules/graph.py')
-rw-r--r--openerp/modules/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/modules/graph.py b/openerp/modules/graph.py
index b0f6141e78f..48666d9d9f3 100644
--- a/openerp/modules/graph.py
+++ b/openerp/modules/graph.py
@@ -70,7 +70,7 @@ class Graph(dict):
return
# update the graph with values from the database (if exist)
## First, we set the default values for each package in graph
- additional_data = dict.fromkeys(self.keys(), {'id': 0, 'state': 'uninstalled', 'dbdemo': False, 'installed_version': None})
+ additional_data = dict((key, {'id': 0, 'state': 'uninstalled', 'dbdemo': False, 'installed_version': None}) for key in self.keys())
## Then we get the values from the database
cr.execute('SELECT name, id, state, demo AS dbdemo, latest_version AS installed_version'
' FROM ir_module_module'