diff options
| author | Numerigraphe - Lionel Sausin <ls@numerigraphe.fr> | 2010-03-24 17:32:22 +0100 |
|---|---|---|
| committer | Numerigraphe - Lionel Sausin <ls@numerigraphe.fr> | 2010-03-24 17:32:22 +0100 |
| commit | 25a424a89d32e4485ae1e120c1d8b2ada216800e (patch) | |
| tree | 95a31c592361c31614ac6031245d44a210047699 /bin/addons/base/module/module.py | |
| parent | 26bb219a74ca586de0f935e544991a9202da311f (diff) | |
[REF] 'children' instead of 'childs'
lp bug: https://launchpad.net/bugs/327259 fixed
bzr revid: ls@numerigraphe.fr-20100324163222-dj03gxme8sawtdmz
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index 01ea8cc0745..223a9ac1e42 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -46,8 +46,8 @@ 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)) + children = [c for c, in cr.fetchall()] + result[id] = reduce(lambda x,y:x+y, [result.get(c, 0) for c in children], result.get(id, 0)) return result _columns = { |
