[FIX] use a local variable row instead of res
bzr revid: guewen.baconnier@camptocamp.com-20120301122124-0izdqntr76ruqtde
This commit is contained in:
parent
e1ef7c7d88
commit
1bf3b3b515
|
@ -315,8 +315,8 @@ class account_account(osv.osv):
|
||||||
self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
|
self.logger.notifyChannel('addons.'+self._name, netsvc.LOG_DEBUG,
|
||||||
'Status: %s'%cr.statusmessage)
|
'Status: %s'%cr.statusmessage)
|
||||||
|
|
||||||
for res in cr.dictfetchall():
|
for row in cr.dictfetchall():
|
||||||
accounts[res['id']] = res
|
accounts[row['id']] = row
|
||||||
|
|
||||||
# consolidate accounts with direct children
|
# consolidate accounts with direct children
|
||||||
children_and_consolidated.reverse()
|
children_and_consolidated.reverse()
|
||||||
|
|
Loading…
Reference in New Issue