-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message when applying for a vacation #8
Comments
Which module? Which version? Detailed steps to reproduce the problem? |
Module: hr_holiday_public Odoo 13.0 (Community Edition) Step to reproduce the Problem: I add public holidays in Leaves > Public Holidays > Public Holidays in Leaves dashbord I selected the Days I want to be on leave. Then I got the Error |
Can you also indicate which public holidays and which leave (dates)? |
I uninstalled the module hr_attendance_report_theoretical_time then it worked as desired Technical Name | hr_attendance_report_theoretical_time |
OK, thanks for digging about the reason. @jarroyomorales maybe you can check for the problem? |
I have solved the problem as follows:
This solved the problem for me. |
This should be solved since a while. |
Hi, I have a similar error. In the selection process module, when I click on applications > create > skills, create a new entry I get this error. Odoo Server Error During handling of the above exception, another exception occurred: Traceback (most recent call last): |
If I want to apply for a vacation in the dashboard, as it says in the description, I get the following error message:
Fehler:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/api.py", line 745, in get
value = self._data[field][record._ids[0]]
KeyError: <NewId 0x7f224c098048>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/fields.py", line 996, in get
value = env.cache.get(record, self)
File "/opt/odoo/odoo13/odoo/api.py", line 751, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('hr.leave(<NewId 0x7f224c098048>,).number_of_hours_display', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/api.py", line 745, in get
value = self._data[field][record._ids[0]]
KeyError: 7
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/fields.py", line 996, in get
value = env.cache.get(record, self)
File "/opt/odoo/odoo13/odoo/api.py", line 751, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('hr.employee(7,).resource_calendar_id', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo13/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo13/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo13/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo/odoo13/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo13/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo13/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo13/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo13/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo13/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1322, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo13/addons/web/controllers/main.py", line 1314, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo13/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo13/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo13/odoo/models.py", line 6071, in onchange
value = record[name]
File "/opt/odoo/odoo13/odoo/models.py", line 5610, in getitem
return self._fields[key].get(self, type(self))
File "/opt/odoo/odoo13/odoo/fields.py", line 1020, in get
self.compute_value(recs)
File "/opt/odoo/odoo13/odoo/fields.py", line 1105, in compute_value
records._compute_field_value(self)
File "/opt/odoo/odoo13/odoo/models.py", line 3915, in _compute_field_value
getattr(self, field.compute)()
File "/opt/odoo/odoo13/addons/hr_holidays/models/hr_leave.py", line 435, in _compute_number_of_hours_display
calendar = holiday._get_calendar()
File "/opt/odoo/odoo13/addons/hr_holidays/models/hr_leave.py", line 430, in _get_calendar
return self.employee_id.resource_calendar_id or self.env.company.resource_calendar_id
File "/opt/odoo/odoo13/odoo/fields.py", line 2294, in get
return super().get(records, owner)
File "/opt/odoo/odoo13/odoo/fields.py", line 1003, in get
recs._fetch_field(self)
File "/opt/odoo/odoo13/odoo/models.py", line 2944, in _fetch_field
self._read(fnames)
File "/opt/odoo/odoo13/addons/hr/models/hr_employee.py", line 133, in _read
res = self.env['hr.employee.public'].browse(self.ids).read(fields)
File "/opt/odoo/odoo13/odoo/models.py", line 2893, in read
raise ValueError("Invalid field %r on model %r" % (name, self._name))
ValueError: Invalid field 'name_related' on model 'hr.employee.public'
But if I do the same with the admin user then the error message does not come up
Thanks a lot
The text was updated successfully, but these errors were encountered: