[FIX] Account: Consolidation Account should not be carried to next fiscalyear
This commit is contained in:
parent
518649c371
commit
629e3709d0
|
@ -132,7 +132,7 @@ class account_fiscalyear_close(osv.osv_memory):
|
|||
FROM account_account a
|
||||
LEFT JOIN account_account_type t ON (a.user_type = t.id)
|
||||
WHERE a.active
|
||||
AND a.type != 'view'
|
||||
AND a.type not in ('view', 'consolidation')
|
||||
AND a.company_id = %s
|
||||
AND t.close_method = %s''', (company_id, 'unreconciled', ))
|
||||
account_ids = map(lambda x: x[0], cr.fetchall())
|
||||
|
@ -182,7 +182,7 @@ class account_fiscalyear_close(osv.osv_memory):
|
|||
FROM account_account a
|
||||
LEFT JOIN account_account_type t ON (a.user_type = t.id)
|
||||
WHERE a.active
|
||||
AND a.type != 'view'
|
||||
AND a.type not in ('view', 'consolidation')
|
||||
AND a.company_id = %s
|
||||
AND t.close_method = %s''', (company_id, 'detail', ))
|
||||
account_ids = map(lambda x: x[0], cr.fetchall())
|
||||
|
@ -211,7 +211,7 @@ class account_fiscalyear_close(osv.osv_memory):
|
|||
FROM account_account a
|
||||
LEFT JOIN account_account_type t ON (a.user_type = t.id)
|
||||
WHERE a.active
|
||||
AND a.type != 'view'
|
||||
AND a.type not in ('view', 'consolidation')
|
||||
AND a.company_id = %s
|
||||
AND t.close_method = %s''', (company_id, 'balance', ))
|
||||
account_ids = map(lambda x: x[0], cr.fetchall())
|
||||
|
|
Loading…
Reference in New Issue