Skip to content

Instantly share code, notes, and snippets.

@velbon
Created March 11, 2022 06:30
Show Gist options
  • Save velbon/3cb9d0086ee37824f8afc33ff438d8aa to your computer and use it in GitHub Desktop.
Save velbon/3cb9d0086ee37824f8afc33ff438d8aa to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/opt/odoo/odoo/api.py", line 1049, in get
value = self._data[key][field][record._ids[0]]
KeyError: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/fields.py", line 1064, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/odoo/api.py", line 1051, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('res.users(1,).company_id', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/service/wsgi_server.py", line 142, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1320, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1293, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.7/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
return self.app(environ, start_response)
File "/opt/odoo/odoo/http.py", line 1488, in dispatch
result = ir_http._dispatch()
File "/opt/odoo/addons/web_editor/models/ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 212, in _dispatch
return cls._handle_exception(e)
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 179, in _handle_exception
raise exception
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 208, in _dispatch
result = request.dispatch()
File "/opt/odoo/odoo/http.py", line 835, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 342, in checked_call
result.flatten()
File "/opt/odoo/odoo/http.py", line 1270, in flatten
self.response.append(self.render())
File "/opt/odoo/odoo/http.py", line 1263, in render
return env["ir.ui.view"].render_template(self.template, self.qcontext)
File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1338, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render
return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1344, in render
qcontext = dict() if minimal_qcontext else self._prepare_qcontext()
File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1357, in _prepare_qcontext
res_company=self.env.user.company_id.sudo(),
File "/opt/odoo/odoo/fields.py", line 1068, in __get__
self.determine_value(record)
File "/opt/odoo/odoo/fields.py", line 1171, in determine_value
record._prefetch_field(self)
File "/opt/odoo/odoo/models.py", line 2882, in _prefetch_field
result = records.read([f.name for f in fs], load='_classic_write')
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 1239, in read
res = super(UsersView, self).read(other_fields, load=load)
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 451, in read
return super(Users, self).read(fields=fields, load=load)
File "/opt/odoo/odoo/models.py", line 2820, in read
self._read_from_database(stored, inherited)
File "/opt/odoo/odoo/addons/base/models/res_users.py", line 369, in _read_from_database
super(Users, self)._read_from_database(field_names, inherited_field_names)
File "/opt/odoo/odoo/models.py", line 2947, in _read_from_database
cr.execute(query_str, params)
File "/opt/odoo/odoo/sql_db.py", line 148, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo/sql_db.py", line 225, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: column res_users.mfa_enabled does not exist
LINE 1: ...tner_id","res_users"."create_uid" as "create_uid","res_users...
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment