From 8018f6f915b8ff3c83992f819877827fabf94fc9 Mon Sep 17 00:00:00 2001 From: ced <> Date: Mon, 26 Nov 2007 15:46:12 +0000 Subject: [PATCH] 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 --- addons/account/account.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index f39965d7036..c5bfa2ab60b 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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()