Created
May 7, 2024 13:58
-
-
Save name1984/32e5a9b27b410599dd2528d525eaa97b to your computer and use it in GitHub Desktop.
Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RPC_ERROR | |
Odoo Server Error | |
Traceback (most recent call last): | |
File "/home/odoo/instance/odoo/odoo/api.py", line 899, in get | |
return field_cache[record._ids[0]] | |
KeyError: 6 | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/odoo/instance/odoo/odoo/fields.py", line 1083, in __get__ | |
value = env.cache.get(record, self) | |
File "/home/odoo/instance/odoo/odoo/api.py", line 902, in get | |
raise CacheMiss(record, field) | |
odoo.exceptions.CacheMiss: 'project.project(6,).warning_employee_rate' | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/home/odoo/instance/odoo/odoo/addons/base/models/ir_http.py", line 242, in _dispatch | |
result = request.dispatch() | |
File "/home/odoo/instance/odoo/odoo/http.py", line 702, in dispatch | |
result = self._call_function(**self.params) | |
File "/home/odoo/instance/odoo/odoo/http.py", line 368, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/home/odoo/instance/odoo/odoo/service/model.py", line 94, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/home/odoo/instance/odoo/odoo/http.py", line 357, in checked_call | |
result = self.endpoint(*a, **kw) | |
File "/home/odoo/instance/odoo/odoo/http.py", line 925, in __call__ | |
return self.method(*args, **kw) | |
File "/home/odoo/instance/odoo/odoo/http.py", line 546, in response_wrap | |
response = f(*args, **kw) | |
File "/home/odoo/instance/odoo/addons/web/controllers/main.py", line 1282, in search_read | |
return self.do_search_read(model, fields, offset, limit, domain, sort) | |
File "/home/odoo/instance/odoo/addons/web/controllers/main.py", line 1301, in do_search_read | |
return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort) | |
File "/home/odoo/instance/odoo/addons/web/models/models.py", line 62, in web_search_read | |
records = self.search_read(domain, fields, offset=offset, limit=limit, order=order) | |
File "/home/odoo/instance/odoo/odoo/models.py", line 5091, in search_read | |
result = records.read(fields, **read_kwargs) | |
File "/home/odoo/instance/odoo/odoo/models.py", line 3243, in read | |
return self._read_format(fnames=fields, load=load) | |
File "/home/odoo/instance/odoo/odoo/models.py", line 3263, in _read_format | |
vals[name] = convert(record[name], record, use_name_get) | |
File "/home/odoo/instance/odoo/odoo/models.py", line 5936, in __getitem__ | |
return self._fields[key].__get__(self, self.env.registry[self._name]) | |
File "/home/odoo/instance/odoo/odoo/fields.py", line 1132, in __get__ | |
self.compute_value(recs) | |
File "/home/odoo/instance/odoo/odoo/fields.py", line 1295, in compute_value | |
records._compute_field_value(self) | |
File "/home/odoo/instance/odoo/addons/mail/models/mail_thread.py", line 411, in _compute_field_value | |
return super()._compute_field_value(field) | |
File "/home/odoo/instance/odoo/odoo/models.py", line 4277, in _compute_field_value | |
fields.determine(field.compute, self) | |
File "/home/odoo/instance/odoo/odoo/fields.py", line 88, in determine | |
return needle(*args) | |
File "/home/odoo/instance/odoo/addons/sale_timesheet/models/project.py", line 148, in _compute_warning_employee_rate | |
dict_project_employee[line['project_id'][0]] += [line['employee_id'][0]] if line['employee_id'] else [] | |
Exception | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/home/odoo/instance/odoo/odoo/http.py", line 658, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/home/odoo/instance/odoo/odoo/http.py", line 301, in _handle_exception | |
raise exception.with_traceback(None) from new_cause | |
TypeError: 'bool' object is not subscriptable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment