report->[balance|general ledger] on selected general ledger account gives application error: fiscalyear
If I right click and select, for example, report->balance on any account
I get an application error: fiscalyear
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 107, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 160, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/report/report.py", line 150, in execute
report_context = cls.get_context(records, data)
File "/trytond/modules/account/account.py", line 1489, in get_context
report_context['fiscalyear'] = Fiscalyear(context['fiscalyear'])
KeyError: 'fiscalyear'
selecting from the main window menu or icon works okay