fails to split a stock.shipment.internal record
It happens because the 'transaction_split' function in the model 'stock.shipment.split' is calling the 'copy' method with a list of ids as argument instead a list of objects and the definition of the 'copy' method for the model 'stock.shipment.internal' in the 'stock' module is trying to get the fields information from the id.
Traceback (most recent call last):
File "/trytond/wsgi.py", line 71, 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 42, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 167, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/wizard/wizard.py", line 287, in execute
return wizard._execute(state_name)
File "/trytond/wizard/wizard.py", line 318, in _execute
result = self._execute(transition())
File "/trytond/modules/stock_split/stock.py", line 221, in transition_split
shipment, = Shipment.copy([shipment.id], default={'moves': None})
File "/trytond/modules/stock/shipment.py", line 2333, in copy
Move.copy(shipment.outgoing_moves, default={
AttributeError: 'int' object has no attribute 'outgoing_moves'