500: Internal Server Error
QWeb
Error message:
Error to render compiling AST TypeError: object of type 'NoneType' has no len() Template: auth_oauth.providers Path: /t/t Node: <t t-if="len(providers) > 0"> <em t-attf-class="d-block text-center text-muted small my-#{len(providers) if len(providers) < 3 else 3}">- or -</em> <div class="o_auth_oauth_providers list-group mt-1 mb-1 text-left"> <a t-foreach="providers" t-as="p" class="list-group-item list-group-item-action py-2" t-att-href="p['auth_link']"> <i t-att-class="p['css_class']"/> <t t-esc="p['body']"/> </a> </div> </t>
The error occured while rendering the template auth_oauth.providers
and evaluating the following expression: <t t-if="len(providers) > 0">
<em t-attf-class="d-block text-center text-muted small my-#{len(providers) if len(providers) < 3 else 3}">- or -</em>
<div class="o_auth_oauth_providers list-group mt-1 mb-1 text-left">
<a t-foreach="providers" t-as="p" class="list-group-item list-group-item-action py-2" t-att-href="p['auth_link']">
<i t-att-class="p['css_class']"/>
<t t-esc="p['body']"/>
</a>
</div>
</t>
Traceback
Traceback (most recent call last): File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 807, in dispatch r = self._call_function(**self.params) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 351, in checked_call result.flatten() File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 1251, in flatten self.response.append(self.render()) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 1244, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_ui_view.py", line 1708, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/ubuntu/workstation/securityinvestment/Security-demo/addons/website/models/ir_ui_view.py", line 420, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/addons/web_editor/models/ir_ui_view.py", line 28, in _render return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_ui_view.py", line 1716, in _render return self.env[engine]._render(self.id, qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_qweb.py", line 55, in _render result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_auth_signup_reset_password_17480 File "<template>", line 2, in body_call_content_17478 File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 338, in _compiled_fn raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 807, in dispatch r = self._call_function(**self.params) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 351, in checked_call result.flatten() File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 1251, in flatten self.response.append(self.render()) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/http.py", line 1244, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_ui_view.py", line 1708, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/ubuntu/workstation/securityinvestment/Security-demo/addons/website/models/ir_ui_view.py", line 420, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/addons/web_editor/models/ir_ui_view.py", line 28, in _render return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_ui_view.py", line 1716, in _render return self.env[engine]._render(self.id, qcontext) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/ir_qweb.py", line 55, in _render result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_auth_signup_reset_password_17480 File "<template>", line 2, in body_call_content_17478 File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 338, in _compiled_fn raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) odoo.addons.base.models.qweb.QWebException: object of type 'NoneType' has no len() Traceback (most recent call last): File "/home/ubuntu/workstation/securityinvestment/Security-demo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_auth_oauth_providers_17484 TypeError: object of type 'NoneType' has no len() Error to render compiling AST TypeError: object of type 'NoneType' has no len() Template: auth_oauth.providers Path: /t/t Node: <t t-if="len(providers) > 0"> <em t-attf-class="d-block text-center text-muted small my-#{len(providers) if len(providers) < 3 else 3}">- or -</em> <div class="o_auth_oauth_providers list-group mt-1 mb-1 text-left"> <a t-foreach="providers" t-as="p" class="list-group-item list-group-item-action py-2" t-att-href="p['auth_link']"> <i t-att-class="p['css_class']"/> <t t-esc="p['body']"/> </a> </div> </t>