[FIX] account_tax_report=> fiscalyear id not required field

bzr revid: mra@mra-laptop-20101027114851-dnba2ve0j0k48z5s
This commit is contained in:
Mustufa Rangwala 2010-10-27 17:18:51 +05:30
parent 6fac643ddf
commit 19f63661b2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class tax_report(rml_parse.rml_parse, common_report_header):
self.period_ids = []
period_obj = self.pool.get('account.period')
res['periods'] = ''
res['fiscalyear'] = data['form']['fiscalyear_id']
res['fiscalyear'] = data['form'].get('fiscalyear_id', False)
if data['form']['period_from'] and data['form']['period_to']:
self.period_ids = period_obj.build_ctx_periods(self.cr, self.uid, data['form']['period_from'], data['form']['period_to'])