diff options
| author | Numerigraphe - Lionel Sausin <ls@numerigraphe.fr> | 2010-11-12 11:39:52 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2010-11-12 11:39:52 +0100 |
| commit | 1fff5e28f1301adc89a0d089c97228e337b56b85 (patch) | |
| tree | 920c35ed2cefafb55828b32ec6ac1701423d2fc9 /bin/addons/base/module/module.py | |
| parent | 0a25c19e16db044c4b67bb0f9b4dd3bac9417bfe (diff) | |
| parent | 5905b3ecf05702494c71992beca0ab1505afcf0d (diff) | |
[FIX] incorrect spellings (childs -> children)
bzr revid: xmo@openerp.com-20101112103952-qabm06zgu6s5qrnn
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index f552a24de64..3dcd5b550c9 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -53,8 +53,7 @@ class module_category(osv.osv): result = dict(cr.fetchall()) for id in ids: cr.execute('select id from ir_module_category where parent_id=%s', (id,)) - childs = [c for c, in cr.fetchall()] - result[id] = reduce(lambda x,y:x+y, [result.get(c, 0) for c in childs], result.get(id, 0)) + result[id] = reduce(lambda x,y:x+y, [result.get(c, 0) for (c,) in cr.fetchall()], result.get(id, 0)) return result _columns = { |
