[FIX] Multi-Company Environment :Configuration of consolidated type of account is...
authorARA (OpenERP) <ara@tinyerp.com>
Wed, 9 Feb 2011 12:05:35 +0000 (17:35 +0530)
committerARA (OpenERP) <ara@tinyerp.com>
Wed, 9 Feb 2011 12:05:35 +0000 (17:35 +0530)
lp bug: https://launchpad.net/bugs/715695 fixed

bzr revid: ara@tinyerp.com-20110209120535-o3htlw38zves04fm

addons/account/account.py

index b9cc947..602b367 100644 (file)
@@ -424,7 +424,7 @@ class account_account(osv.osv):
             context = {}
         accounts = self.browse(cr, uid, ids, context=context)
         for account in accounts:
-            if account.child_id and account.type != 'view':
+            if account.child_id and account.type not in ('view', 'consolidation'):
                 return False
         return True