Hi There,
Looking for urgent help, we attempted to change themes and the website module has "broken". Removing the website module and updating base has not resolved the error.
We get 500 Internal Server Error when trying to visit Odoo. Some users who are still logged in can use the back end fine.
The Log Shows:
2019-07-19 02:11:17,351 7212 INFO APC_LIVE odoo.addons.base.models.ir_ui_view: Element '<xpath expr="//link[@href='/website/static/src/scss/bootstrap_overridden.scss']">' cannot be located in parent view
Error context:
View `_assets_frontend_helpers`
[view_id: 6657, xml_id: n/a, model: n/a, parent_id: 5202]
2019-07-19 02:11:17,508 7212 INFO APC_LIVE werkzeug: 127.0.0.1 - - [19/Jul/2019 02:11:17] "GET /web/login HTTP/1.1" 500 - 268 0.719 0.996
2019-07-19 02:11:17,514 7212 ERROR APC_LIVE werkzeug: Error on request:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\python\lib\site-packages\werkzeug\serving.py", line 205, in run_wsgi
execute(self.server.app)
File "C:\Program Files (x86)\Odoo 12.0e\python\lib\site-packages\werkzeug\serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\server.py", line 350, in app
return self.app(e, s)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\wsgi_server.py", line 128, in application
return application_unproxied(environ, start_response)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 1318, in __call__
return self.dispatch(environ, start_response)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 1291, in __call__
return self.app(environ, start_wrapped)
File "C:\Program Files (x86)\Odoo 12.0e\python\lib\site-packages\werkzeug\wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 1486, in dispatch
result = ir_http._dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\auth_signup\models\ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web_editor\models\ir_http.py", line 22, in _dispatch
return super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\http_routing\models\ir_http.py", line 394, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\utm\models\ir_http.py", line 26, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_http.py", line 207, in _dispatch
return cls._handle_exception(e)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\utm\models\ir_http.py", line 31, in _handle_exception
response = super(IrHttp, cls)._handle_exception(exc)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_http.py", line 177, in _handle_exception
return request._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 774, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_http.py", line 203, in _dispatch
result = request.dispatch()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 833, in dispatch
r = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 340, in checked_call
result.flatten()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 1268, in flatten
self.response.append(self.render())
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 1261, in render
return env["ir.ui.view"].render_template(self.template, self.qcontext)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1276, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "C:\Program Files (x86)\Odoo 12.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 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1285, in render
return self.env[engine].render(self.id, qcontext)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web_studio\models\ir_qweb.py", line 43, in render
return super(IrQWeb, self).render(template, values=values, **options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 59, in render
result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 272, in render
self.compile(template, options)(self, body.append, values or {})
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
raise e
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 344, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_161_5
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
raise e
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 344, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_login_layout_11
File "<template>", line 2, in body_call_content_10
File "<template>", line 4, in set_8
File "<decorator-gen-56>", line 2, in _get_asset_nodes
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 93, in lookup
value = d[key] = self.method(*args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 305, in _get_asset_nodes
files, remains = self._get_asset_content(xmlid, options)
File "<decorator-gen-57>", line 2, in _get_asset_content
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 93, in lookup
value = d[key] = self.method(*args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 331, in _get_asset_content
template = IrQweb.render(xmlid, {"get_modules_order": get_modules_order})
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web_studio\models\ir_qweb.py", line 43, in render
return super(IrQWeb, self).render(template, values=values, **options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 59, in render
result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 272, in render
self.compile(template, options)(self, body.append, values or {})
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 346, in _compiled_fn
raise e
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 344, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_assets_frontend_29
File "<decorator-gen-54>", line 2, in compile
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 93, in lookup
value = d[key] = self.method(*args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 114, in compile
return super(IrQWeb, self).compile(id_or_xml_id, options=options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 289, in compile
element, document = self.get_template(template, options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web_studio\models\ir_qweb.py", line 21, in get_template
element, document = super(IrQWeb, self).get_template(template, options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 374, in get_template
raise QWebException("load could not load template", name=template)
odoo.addons.base.models.qweb.QWebException: None
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 88, in lookup
r = d[key]
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb._get_asset_nodes at 0x043DC078>, 'web.assets_frontend', 'en_GB', True, False, None, False, (None,))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 88, in lookup
r = d[key]
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb._get_asset_content at 0x043DC150>, 'web.assets_frontend', 'en_GB', (None,))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 88, in lookup
r = d[key]
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.qweb', <function IrQWeb.compile at 0x043CFD68>, 'web._assets_frontend_helpers', ('en_GB', False, None, False, False, None, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 88, in lookup
r = d[key]
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.ui.view', <function View._read_template at 0x03FC7468>, frozenset({1, 3, 4, 261, 134, 135, 8, 5, 262, 139, 11, 13, 14, 15, 16, 17, 18, 140, 20, 21, 19, 23, 26, 27, 28, 29, 30, 31, 32, 33, 260, 36, 37, 7, 40, 41, 45, 46, 47, 48, 51, 52, 53, 54, 55, 58, 59, 62, 63, 100, 101, 231, 232, 233, 234, 235, 236, 237, 238, 239, 104, 240, 242, 243, 244, 241, 248, 249}), 5202, ('en_GB', False, None, False, False))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\qweb.py", line 370, in get_template
document = options.get('load', self.load)(template, options)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_qweb.py", line 122, in load
template = env['ir.ui.view'].read_template(name)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1170, in read_template
return self._read_template(self.get_view_id(xml_id))
File "<decorator-gen-33>", line 2, in _read_template
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\cache.py", line 93, in lookup
value = d[key] = self.method(*args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 1161, in _read_template
arch = self.browse(view_id).read_combined(['arch'])['arch']
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 780, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 729, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web_studio\models\ir_ui_view.py", line 152, in apply_inheritance_specs
return super(View, self).apply_inheritance_specs(source, specs_tree, inherit_id)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 707, in apply_inheritance_specs
self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_ui_view.py", line 545, in raise_view_error
raise ValueError(message)
ValueError: Element '<xpath expr="//link[@href='/website/static/src/scss/bootstrap_overridden.scss']">' cannot be located in parent view
Error context:
View `_assets_frontend_helpers`
[view_id: 6657, xml_id: n/a, model: n/a, parent_id: 5202]
load could not load template
Template: web._assets_frontend_helpers - - -