Error picking shipment assignment

In the shipment picking assignment I have the following error message

Traceback (most recent call last):
  File "/trytond/", line 111, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 47, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/", line 78, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 131, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 181, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/", line 314, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/", line 345, in _execute
    result = self._execute(transition())
  File "/trytond/modules/stock/", line 2526, in transition_start
    if self.record.assign_try():
  File "/trytond/model/", line 31, in newfunc
    return self.func(owner, [instance], *args, **kwargs)
  File "/trytond/model/", line 736, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/trytond/modules/stock/", line 1420, in assign_try
    if Move.assign_try(to_assign):
  File "/trytond/modules/stock/", line 954, in assign_try
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