Fault: Object of type product.uom.category is not JSON serializable
Since e10256f43aea, i'm getting this error Fault: Object of type product.uom.category is not JSON serializable
How to reproduce:
- Create a purchase
- Create a purchase line and add a product
It happens also when adding a party on Supplier shipment.
Full tracelog:
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 43, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 75, in wrapper
return func(request, *args, **kwargs)
File "/trytond/protocols/wrappers.py", line 178, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 250, in _dispatch
response = app.make_response(request, result)
File "/trytond/wsgi.py", line 140, 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 product.uom.category is not JSON serializable
Fault: Object of type product.uom.category is not JSON serializable