2019-07-17 02:25:15,920 5812 ERROR 0703_v11 odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/fields.py", line 944, in __get__
value = record.env.cache.get(record, self)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/api.py", line 967, in get
value = self._data[key][field][record._ids[0]]
KeyError: <odoo.models.NewId object at 0x7f2984a3b6a8>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/home/hui/odoo-dev/odoo11/odoo11/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 5197, in onchange
snapshot1 = Snapshot(record, nametree)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 5104, in __init__
if subnames else record[name]
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 4784, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/fields.py", line 951, in __get__
value = record.env.cache.get(record, self)
File "/home/hui/odoo-dev/odoo11/odoo11/odoo/api.py", line 967, in get
value = self._data[key][field][record._ids[0]]
KeyError: <odoo.models.NewId object at 0x7f2984a3b6a8>