[MERGE] Multi-Company Environment :Configuration of consolidated type of account is not possible due to the _check_type constraints.

bzr revid: mra@mra-laptop-20110209122606-4cl9vxeo7tw6hol7
This commit is contained in:
Mustufa Rangwala
2011-02-09 17:56:06 +05:30
+1 -1
View 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