Crash when executing reconcile wizard without any record selected
When executing the account reconcile wizard without any record, I get the following traceback on the screen:
Warning:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 116, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 83, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 131, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/wizard/wizard.py", line 314, in execute
return wizard._execute(state_name)
File "/trytond/wizard/wizard.py", line 345, in _execute
result = self._execute(transition())
File "/trytond/modules/account/move.py", line 1519, in transition_start
amount, company = self.get_writeoff()
File "/trytond/modules/account/move.py", line 1512, in get_writeoff
for line in self.records:
TypeError: 'NoneType' object is not iterable