[JsonRcp] TypeError: keys must be str, int, float, bool or None, not frozendict
Prometee opened this issue · comments
Francis Hilaire commented
Impacted versions: 17
Steps to reproduce:
Use Odoo Docker official image and run it with this options :
docker run -p 8069:8069 --env HOST=host.docker.internal --name odoo_17 --pull missing -t odoo:17 -- --database odoo-master-v17 --init "l10n_fr,account_accountant,sale_management"
Make an JSON-RPC call "search_read" on the model account.move.line
requesting all fields.
Current behavior:
Odoo Server Error - builtins.TypeError
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 1768, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/src/odoo/odoo/http.py", line 1795, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/odoo/http.py", line 2002, in dispatch
return self._response(result)
File "/home/odoo/src/odoo/odoo/http.py", line 2038, in _response
return self.request.make_json_response(response)
File "/home/odoo/src/odoo/odoo/http.py", line 1622, in make_json_response
data = json.dumps(data, ensure_ascii=False, default=date_utils.json_default)
File "/usr/lib/python3.10/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib/python3.10/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.10/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
TypeError: keys must be str, int, float, bool or None, not frozendict
Expected behavior: No error
The field causing this error is compute_all_tax