projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
981362b
)
[IMP] unpack a listcomp in a dict passed to an update, pass gencomp directly to update
author
Xavier Morel
<xmo@openerp.com>
Fri, 20 Jun 2014 05:52:42 +0000
(07:52 +0200)
committer
Xavier Morel
<xmo@openerp.com>
Fri, 20 Jun 2014 05:52:42 +0000
(07:52 +0200)
openerp/modules/graph.py
patch
|
blob
|
history
diff --git
a/openerp/modules/graph.py
b/openerp/modules/graph.py
index
76a9f04
..
b0f6141
100644
(file)
--- 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():