Skip to Content
Menu
This question has been flagged
2 Replies
2769 Views

I have two users report and error when they try to change the address or any other information on an existing record in contacts. The final line of the error code is 

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/models.py", line 4743, in <dictcomp>
    if name in fields
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/fields.py", line 1952, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for res.partner.lang: 'en_US'

I have logged in under their user accounts and been able to make change from in my own session so this has me very perplexed. 

The language preferances on their user accounts (odoo) is the same as mine and broadly compatible with their laptops. The only difference I can see is that they are using Apple Macs whereas I am using Windows ( client hardware) but why on earth that would make a difference is beyond me.



Avatar
Discard

Please post the complete traceback.

Author Best Answer

As requested:

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/addons/web/controllers/main.py", line 962, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/models.py", line 5394, in onchange
    record = self.new(values)
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/models.py", line 4869, in new
    record._cache.update(record._convert_to_cache(values, update=True))
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/models.py", line 4742, in _convert_to_cache
    for name, value in values.items()
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/models.py", line 4743, in <dictcomp>
    if name in fields
  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181218-py3.7.egg/odoo/fields.py", line 1952, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for res.partner.lang: 'en_US'


------end traceback----

Avatar
Discard

Did sole that one. I have the same problem

Related Posts Replies Views Activity
3
Jan 22
7092
0
Sep 21
1355
0
Sep 21
1802
0
Dec 20
2500
2
Feb 16
116