Crash when opening product quantitys by warehouse from an internal shipment without planned date
On 6.0 series, if you create an internal shipment without planned date and then try to open the Product Quantities by Warehouse the following traceback is shown:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, 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 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 156, 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 340, in _execute
do_result = do(actio
File "/trytond/modules/stock/product.py", line 453, in do_open_
action['pyson_search_value'] = encoder.encode(self.get_search_value())
File "/trytond/modules/stock/product.py", line 477, in get_search_value
and self.record.planned_date >= today):
TypeError: '>=' not supported between instances of 'NoneType' and 'datetime.date'