[FIX] Multi-Company Environment :Configuration of consolidated type of account is not possible due to the _check_type constraints
lp bug: https://launchpad.net/bugs/715695 fixed bzr revid: ara@tinyerp.com-20110209120535-o3htlw38zves04fm
This commit is contained in:
parent
db892909f0
commit
e0a95e80c1
|
@ -424,7 +424,7 @@ class account_account(osv.osv):
|
||||||
context = {}
|
context = {}
|
||||||
accounts = self.browse(cr, uid, ids, context=context)
|
accounts = self.browse(cr, uid, ids, context=context)
|
||||||
for account in accounts:
|
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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue