Skip to content

Instantly share code, notes, and snippets.

@kinafu
Created July 30, 2020 10:46
Show Gist options
  • Save kinafu/095c286ad9d3e8c4fe2e6bc926d70fc2 to your computer and use it in GitHub Desktop.
Save kinafu/095c286ad9d3e8c4fe2e6bc926d70fc2 to your computer and use it in GitHub Desktop.
{"jsonrpc": "2.0", "id": null, "error": {"code": 200, "message": "Odoo Server Error", "data": {"name": "odoo.exceptions.AccessError", "debug": "Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/api.py\", line 745, in get
value = self._data[field][record._ids[0]]
KeyError: 18
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/fields.py\", line 996, in __get__
value = env.cache.get(record, self)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/api.py\", line 751, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('hr.attendance(18,).worked_hours', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/cache.py\", line 85, in lookup
r = d[key]
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/func.py\", line 69, in wrapper
return func(self, *args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/lru.py\", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7efc0346d158>, 4, False, 'hr.attendance', 'read', True, ('de_DE',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/fields.py\", line 1003, in __get__
recs._fetch_field(self)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 2944, in _fetch_field
self._read(fnames)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 2958, in _read
self.check_access_rights('read')
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 3213, in check_access_rights
return self.env['ir.model.access'].check(self._name, operation, raise_exception)
File \"<decorator-gen-23>\", line 2, in check
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/cache.py\", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/addons/base/models/ir_model.py\", line 1559, in check
raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: (\"Es ist Ihnen leider nicht gestattet, auf Dokumente vom Typ 'Anwesenheit' (hr.attendance). Diese Operation ist f\u00fcr die Gruppen erlaubt:\
\\t- Attendances/Officer\
\\t- User types/Internal User - (Bedienung: read, Kassier: 4)\", None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/cache.py\", line 85, in lookup
r = d[key]
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/func.py\", line 69, in wrapper
return func(self, *args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/lru.py\", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7efc0346d158>, 4, False, 'hr.attendance', 'read', True, ('de_DE',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/http.py\", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/http.py\", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/pycompat.py\", line 14, in reraise
raise value
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/http.py\", line 669, in dispatch
result = self._call_function(**self.params)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/http.py\", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/service/model.py\", line 94, in wrapper
return f(dbname, *args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/http.py\", line 346, in checked_call
flush_env(self._cr)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/sql_db.py\", line 68, in flush_env
env['base'].flush()
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5389, in flush
self.recompute()
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5799, in recompute
process(field)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5783, in process
recs.mapped(field.name)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5206, in mapped
recs = recs._mapped_func(operator.itemgetter(name))
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5165, in _mapped_func
vals = [func(rec) for rec in self]
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5165, in <listcomp>
vals = [func(rec) for rec in self]
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 5610, in __getitem__
return self._fields[key].__get__(self, type(self))
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/fields.py\", line 1005, in __get__
record._fetch_field(self)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 2944, in _fetch_field
self._read(fnames)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 2958, in _read
self.check_access_rights('read')
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/models.py\", line 3213, in check_access_rights
return self.env['ir.model.access'].check(self._name, operation, raise_exception)
File \"<decorator-gen-23>\", line 2, in check
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/tools/cache.py\", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File \"/home/philipp/PycharmProjects/odoo13c/odoo/odoo/addons/base/models/ir_model.py\", line 1559, in check
raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: (\"Es ist Ihnen leider nicht gestattet, auf Dokumente vom Typ 'Anwesenheit' (hr.attendance). Diese Operation ist f\u00fcr die Gruppen erlaubt:\
\\t- Attendances/Officer\
\\t- User types/Internal User - (Bedienung: read, Kassier: 4)\", None)
", "message": "Es ist Ihnen leider nicht gestattet, auf Dokumente vom Typ 'Anwesenheit' (hr.attendance). Diese Operation ist f\u00fcr die Gruppen erlaubt:
\t- Attendances/Officer
\t- User types/Internal User - (Bedienung: read, Kassier: 4)
None", "arguments": ["Es ist Ihnen leider nicht gestattet, auf Dokumente vom Typ 'Anwesenheit' (hr.attendance). Diese Operation ist f\u00fcr die Gruppen erlaubt:
\t- Attendances/Officer
\t- User types/Internal User - (Bedienung: read, Kassier: 4)", null], "exception_type": "access_error", "context": {}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment