[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user