Message 58406

Author
pokoli
Date
2020-06-02.09:12:45
Message id
58406

Content

When creating the purchases of two purchase request I get the following exception:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 109, 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 77, 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 295, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 326, in _execute
    result = self._execute(transition())
  File "/trytond/modules/purchase_request/purchase_request.py", line 446, in transition_start
    requests = sorted(requests, key=keyfunc)
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Fault: '<' not supported between instances of 'NoneType' and 'int'

The problem is because one of the purchase request is related to drop_shipment (so it has a customer set) but the other is not.
History
Date User Action Args
2020-06-02 09:12:47pokolisetmessageid: <1591081967.13.0.82354317458.issue9381@tryton.org>
2020-06-02 09:12:46pokolilinkissue9381 messages
2020-06-02 09:12:45pokolicreate

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