Tryton - Issues



Author oqueralto
Date 2019-02-15.11:07:17
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/", line 71, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/", line 42, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 167, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/", line 287, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/modules/stock_split/", line 221, in transition_split
    shipment, = Shipment.copy([], default={'moves': None})
  File "/trytond/modules/stock/", line 2333, in copy
    Move.copy(shipment.outgoing_moves, default={
AttributeError: 'int' object has no attribute 'outgoing_moves'
Date User Action Args
2019-02-15 11:07:18oqueraltosetmessageid: <>
2019-02-15 11:07:18oqueraltolinkissue8118 messages
2019-02-15 11:07:17oqueraltocreate

Showing 10 items. Show all history (warning: this could be VERY long)