[FIX] account_tax_report=> fiscalyear id not required field
bzr revid: mra@mra-laptop-20101027114851-dnba2ve0j0k48z5s
This commit is contained in:
parent
6fac643ddf
commit
19f63661b2
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue