Tryton - Issues

 

Message47053

Author oqueralto
Recipients
Date 2019-02-15.11:07:17
Content
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'
History
Date User Action Args
2019-02-15 11:07:18oqueraltosetmessageid: <1550225238.79.0.0941493962593.issue8118@tryton.org>
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)