[FIX] Account : __compute() optimized a little
authorJay (Open ERP) <jvo@tinyerp.com>
Wed, 28 Apr 2010 12:43:51 +0000 (18:13 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Wed, 28 Apr 2010 12:43:51 +0000 (18:13 +0530)
lp bug: https://launchpad.net/bugs/568537 fixed

bzr revid: jvo@tinyerp.com-20100428124351-o9afw3xfd5qmhyjj

addons/account/account.py

index 79540fe..7136784 100644 (file)
@@ -231,6 +231,7 @@ class account_account(osv.osv):
 
 
         # consolidate accounts with direct children
+        ids2.reverse()
         brs = list(self.browse(cr, uid, ids2, context=context))
         sums = {}
         while brs: