Error picking shipment assignment

In the shipment picking assignment I have the following error message

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 111, 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 78, 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/stock/shipment.py", line 2526, in transition_start
    if self.record.assign_try():
  File "/trytond/model/descriptors.py", line 31, in newfunc
    return self.func(owner, [instance], *args, **kwargs)
  File "/trytond/model/modelview.py", line 736, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/trytond/modules/stock/shipment.py", line 1420, in assign_try
    if Move.assign_try(to_assign):
  File "/trytond/modules/stock/move.py", line 954, in assign_try
    childs.remove(move.from_location)
ValueError: list.remove(x): x not in list

Fault: list.remove(x): x not in list

My warehouse storage location is of the view type

I think it is a bug. We should not try to pick from source location if it is a view location.

I created the issue Issue 9896: Error picking shipment assignment - Tryton issue tracker