[FIX] Account/Multi-Company Environment :Configuration of consolidated type of account is not possible due to the _check_type constraints(Ref: Case 4006)
lp bug: https://launchpad.net/bugs/715695 fixed bzr revid: jvo@tinyerp.com-20110209121719-a6jqfug06syt5zdc
This commit is contained in:
parent
771a33d4a3
commit
fd0c005792
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue