[FIX] default to all filscalyears for tax code sum

bzr revid: fp@tinyerp.com-20111125174131-2ljyfx1ig3xbfzcj
This commit is contained in:
Fabien Pinckaers 2011-11-25 18:41:31 +01:00
parent 944d163657
commit 16e4e339dd
1 changed files with 1 additions and 4 deletions

View File

@ -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: