diff --git a/openerp/modules/graph.py b/openerp/modules/graph.py index 76a9f046dc6..b0f6141e78f 100644 --- a/openerp/modules/graph.py +++ b/openerp/modules/graph.py @@ -78,7 +78,7 @@ class Graph(dict): ) ## and we update the default values with values from the database - additional_data.update(dict([(x.pop('name'), x) for x in cr.dictfetchall()])) + additional_data.update((x['name'], x) for x in cr.dictfetchall()) for package in self.values(): for k, v in additional_data[package.name].items():