Message 77566

Author
david_auto
Date
2022-08-04.16:09:03
Message id
77566

Content

this error occurs when creating a sale:

Traceback (most recent call last):
File "/trytond/wsgi.py", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 86, in auth_required
return wrapped(*args,
kwargs)
File "/trytond/protocols/wrappers.py", line 161, in wrapper
return func(request, pool, args, kwargs)
File "/trytond/protocols/dispatcher.py", line 212, in _dispatch
response = app.make_response(request, result)
File "/trytond/wsgi.py", line 142, in make_response
response = cls.response(data, request)
File "/trytond/protocols/jsonrpc.py", line 190, in response
return Response(json.dumps(
File "/json/init.py", line 238, in dumps
*kw).encode(obj)
File "/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/trytond/protocols/jsonrpc.py", line 68, in default
return marshaller(obj)
File "/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type sale.invoice.term is not JSON serializable

History
Date User Action Args
2022-08-04 16:09:03david_autosetmessageid: <1659622143.9122791.Y2OI2G4SIENDQ5UP.issue11629@tryton.org>
2022-08-04 16:09:03david_autolinkissue11629 messages
2022-08-04 16:09:03david_autocreate

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