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: