i try to access the model res.partner with read using XML RPC (RipCord) and get the following error:
[faultCode] => 1 [faultString] => Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/api.py", line 1032, in get value = self._data[field][record.id][key] KeyError: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/fields.py", line 970, in __get__ value = record.env.cache.get(record, self) File "/home/odoo/src/odoo/odoo/api.py", line 1034, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('res.partner(430,).email_formatted', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/controllers/rpc.py", line 63, in xmlrpc_2 response = self._xmlrpc(service) File "/home/odoo/src/odoo/odoo/addons/base/controllers/rpc.py", line 43, in _xmlrpc result = dispatch_rpc(service, method, params) File "/home/odoo/src/odoo/odoo/http.py", line 120, in dispatch_rpc result = dispatch(method, params) File "/home/odoo/src/odoo/odoo/service/model.py", line 39, in dispatch res = fn(db, uid, *params) File "/home/odoo/src/odoo/odoo/service/model.py", line 153, in execute_kw return execute(db, uid, obj, method, *args, **kw or {}) File "/home/odoo/src/odoo/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/odoo/service/model.py", line 160, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "/home/odoo/src/odoo/odoo/service/model.py", line 149, in execute_cr return odoo.api.call_kw(recs, method, args, kw) File "/home/odoo/src/odoo/odoo/api.py", line 749, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/home/odoo/src/odoo/odoo/api.py", line 736, in _call_kw_multi result = method(recs, *args, **kwargs) File "/home/odoo/src/odoo/odoo/models.py", line 2768, in read values[name] = field.convert_to_read(record[name], record, use_name_get) File "/home/odoo/src/odoo/odoo/models.py", line 5047, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/home/odoo/src/odoo/odoo/fields.py", line 974, in __get__ self.determine_value(record) File "/home/odoo/src/odoo/odoo/fields.py", line 1085, in determine_value self.compute_value(recs) File "/home/odoo/src/odoo/odoo/fields.py", line 1041, in compute_value self._compute_value(records) File "/home/odoo/src/odoo/odoo/fields.py", line 1032, in _compute_value getattr(records, self.compute)() File "/home/odoo/src/odoo/odoo/addons/base/models/res_partner.py", line 381, in _compute_email_formatted partner.email_formatted = formataddr((partner.name or u"False", partner.email or u"False")) File "/usr/lib/python3.6/email/utils.py", line 91, in formataddr address.encode('ascii') UnicodeEncodeError: 'ascii' codec can't encode character '\u2028' in position 26: ordinal not in range(128)
Can i switch the Encoding to UTF-8 serverside? Or do i have to set something in RipCord?
I'm using Odee v 12.0+e
[server_version] => 12.0+e
[server_version_info] => Array (
[0] => 12
[1] => 0
[2] => 0
[3] => final
[4] => 0
[5] => e)
[server_serie] => 12.0
[protocol_version] => 1