From 16e4e339dd0f5d2168243bf87533f6ea822eb9ab Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Fri, 25 Nov 2011 18:41:31 +0100 Subject: [PATCH] [FIX] default to all filscalyears for tax code sum bzr revid: fp@tinyerp.com-20111125174131-2ljyfx1ig3xbfzcj --- addons/account/account.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 8aa1569520e..a0a1a1283c0 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1681,10 +1681,7 @@ class account_tax_code(osv.osv): move_state = ('posted', ) if context.get('state', 'all') == 'all': move_state = ('draft', 'posted', ) - if context.get('fiscalyear_id', False): - fiscalyear_id = context['fiscalyear_id'] - else: - fiscalyear_id = self.pool.get('account.fiscalyear').find(cr, uid, exception=False) + fiscalyear_id = context.get('fiscalyear_id', False) where = '' where_params = () if fiscalyear_id: