Don't return 0 for balance account if there is no fiscal year.
Must have the same value than the debit credit function bzr revid: ced-785b0c6a79293a198c9f52febb1c4614bea9057f
This commit is contained in:
parent
59a83e403b
commit
8018f6f915
|
@ -183,8 +183,6 @@ class account_account(osv.osv):
|
|||
if not 'fiscalyear' in context:
|
||||
context['fiscalyear'] = self.pool.get('account.fiscalyear').find(cr, uid,
|
||||
exception=False)
|
||||
if not context['fiscalyear']:
|
||||
return dict(map(lambda x: (x, 0.0), ids))
|
||||
|
||||
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)])
|
||||
ids2 = {}.fromkeys(ids + ids2).keys()
|
||||
|
|
Loading…
Reference in New Issue