[FIX] default to all filscalyears for tax code sum
bzr revid: fp@tinyerp.com-20111125174131-2ljyfx1ig3xbfzcj
This commit is contained in:
parent
944d163657
commit
16e4e339dd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue