Error message:
load could not load template InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block Template: web.login_layout Path: /t/t
The error occured while rendering the template web.login_layout
Traceback
Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 85, in lookup r = d[key] File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\func.py", line 69, in wrapper return func(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.qweb', <function IrQWeb._get_asset_nodes at 0x04ABC540>, 'web.assets_frontend', 'en_US', True, False, '', False, False, False, (1,)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 333, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_frontend_layout_497 File "<decorator-gen-54>", line 2, in _get_asset_nodes File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_qweb.py", line 299, in _get_asset_nodes return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 151, in to_node css_attachments = self.css() or [] File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 332, in css self.save_attachment("css", css) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 289, in save_attachment attachment = ira.with_user(SUPERUSER_ID).create(values) File "<decorator-gen-132>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 314, in _model_create_single return create(self, arg) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_attachment.py", line 25, in create return super(Attachment, self).create(vals) File "<decorator-gen-39>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 335, in _model_create_multi return create(self, [arg]) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_attachment.py", line 529, in create return super(IrAttachment, self).create(vals_list) File "<decorator-gen-3>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 336, in _model_create_multi return create(self, arg) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3810, in create records = self._create(data_list) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3916, in _create cr.execute(query, params) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.UndefinedTable: relation "ir_attachment_id_seq" does not exist LINE 1: ...ore_fname", "type", "website_id") VALUES (nextval('ir_attach... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 745, in get value = self._data[field][record._ids[0]] KeyError: 4 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 1037, in __get__ value = env.cache.get(record, self) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 751, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('res.users(4,).company_id', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 359, in get_template document = options.get('load', self.load)(template, options) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_qweb.py", line 116, in load lang = options.get('lang', get_lang(self.env).code) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\misc.py", line 1177, in get_lang for code in [lang_code, env.context.get('lang'), env.user.company_id.partner_id.lang, langs[0]]: File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 2366, in __get__ return super().__get__(records, owner) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 1044, in __get__ recs._fetch_field(self) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 2994, in _fetch_field self._read(fnames) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\res_users.py", line 378, in _read super(Users, self)._read(fields) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3066, in _read cr.execute(query_str, params) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_http.py", line 234, in _dispatch result = request.dispatch() File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 809, in dispatch r = self._call_function(**self.params) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\service\model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 342, in checked_call result.flatten() File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 1236, in flatten self.response.append(self.render()) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\http.py", line 1229, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1191, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_ui_view.py", line 344, in render return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\web_editor\models\ir_ui_view.py", line 27, in render return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1199, in render return self.env[engine].render(self.id, qcontext) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_qweb.py", line 58, in render result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 260, in render self.compile(template, options)(self, body.append, values or {}) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 335, in _compiled_fn raise e File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 333, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_login_439 File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 335, in _compiled_fn raise e File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 333, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_login_layout_445 File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 338, in _compiled_fn element, document = self.get_template(template, options) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 365, in get_template raise QWebException("load could not load template", e, path, name=template) odoo.addons.base.models.qweb.QWebException: current transaction is aborted, commands ignored until end of transaction block Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 85, in lookup r = d[key] File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\func.py", line 69, in wrapper return func(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.qweb', <function IrQWeb._get_asset_nodes at 0x04ABC540>, 'web.assets_frontend', 'en_US', True, False, '', False, False, False, (1,)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 333, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_frontend_layout_497 File "<decorator-gen-54>", line 2, in _get_asset_nodes File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_qweb.py", line 299, in _get_asset_nodes return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 151, in to_node css_attachments = self.css() or [] File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 332, in css self.save_attachment("css", css) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\assetsbundle.py", line 289, in save_attachment attachment = ira.with_user(SUPERUSER_ID).create(values) File "<decorator-gen-132>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 314, in _model_create_single return create(self, arg) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\website\models\ir_attachment.py", line 25, in create return super(Attachment, self).create(vals) File "<decorator-gen-39>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 335, in _model_create_multi return create(self, [arg]) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_attachment.py", line 529, in create return super(IrAttachment, self).create(vals_list) File "<decorator-gen-3>", line 2, in create File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 336, in _model_create_multi return create(self, arg) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3810, in create records = self._create(data_list) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3916, in _create cr.execute(query, params) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.UndefinedTable: relation "ir_attachment_id_seq" does not exist LINE 1: ...ore_fname", "type", "website_id") VALUES (nextval('ir_attach... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 745, in get value = self._data[field][record._ids[0]] KeyError: 4 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 1037, in __get__ value = env.cache.get(record, self) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\api.py", line 751, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('res.users(4,).company_id', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\qweb.py", line 359, in get_template document = options.get('load', self.load)(template, options) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\ir_qweb.py", line 116, in load lang = options.get('lang', get_lang(self.env).code) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\tools\misc.py", line 1177, in get_lang for code in [lang_code, env.context.get('lang'), env.user.company_id.partner_id.lang, langs[0]]: File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 2366, in __get__ return super().__get__(records, owner) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\fields.py", line 1044, in __get__ recs._fetch_field(self) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 2994, in _fetch_field self._read(fnames) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\addons\base\models\res_users.py", line 378, in _read super(Users, self)._read(fields) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\models.py", line 3066, in _read cr.execute(query_str, params) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "C:\Program Files (x86)\Odoo 13.0e\server\odoo\sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block load could not load template InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block Template: web.login_layout Path: /t/t