500: Internal Server Error
QWeb
Error message:
Error to render compiling AST AttributeError: 'website' object has no attribute 'is_breadcum' Template: website.firearm-registration Path: /t/t/div[1]/t Node: <t t-if="not website.is_breadcum"> <t t-if="website.breadcum_background_image"> <nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background:none;background-color:#{website.breadcrumb_color};padding:#{website.breadcrumb_height};"> <div class="container"> <h1> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </h1> <ul class="breadcrumb"> <li> <a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a> </li> <li class="active"> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </li> </ul> </div> </nav> </t> <t t-if="not website.breadcum_background_image"> <t t-set="bread_cum" t-value="website.image_url(website,'bread_cum_image')"/> <nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background-image:url(#{bread_cum}#);padding:#{website.breadcrumb_height};"> <div class="container"> <h1> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </h1> <ul class="breadcrumb"> <li> <a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a> </li> <li class="active"> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </li> </ul> </div> </nav> </t> </t>
The error occured while rendering the template website.firearm-registration
and evaluating the following expression: <t t-if="not website.is_breadcum">
<t t-if="website.breadcum_background_image">
<nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background:none;background-color:#{website.breadcrumb_color};padding:#{website.breadcrumb_height};">
<div class="container">
<h1>
<span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span>
</h1>
<ul class="breadcrumb">
<li>
<a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a>
</li>
<li class="active">
<span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span>
</li>
</ul>
</div>
</nav>
</t>
<t t-if="not website.breadcum_background_image">
<t t-set="bread_cum" t-value="website.image_url(website,'bread_cum_image')"/>
<nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background-image:url(#{bread_cum}#);padding:#{website.breadcrumb_height};">
<div class="container">
<h1>
<span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span>
</h1>
<ul class="breadcrumb">
<li>
<a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a>
</li>
<li class="active">
<span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span>
</li>
</ul>
</div>
</nav>
</t>
</t>
Traceback
Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_firearm-registration_17135 File "<template>", line 2, in body_call_content_17133 AttributeError: 'website' object has no attribute 'is_breadcum' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/http.py", line 1399, in get_response result.flatten() File "/home/odoo/src/odoo/odoo/http.py", line 1260, in flatten self.response.append(self.render()) File "/home/odoo/src/odoo/odoo/http.py", line 1253, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 1203, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 347, in render return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/odoo/src/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 "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 1211, in render return self.env[engine].render(self.id, qcontext) File "/home/odoo/src/enterprise/web_studio/models/ir_qweb.py", line 43, in render return super(IrQWeb, self).render(template, values=values, **options) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/home/odoo/src/odoo/odoo/addons/base/models/qweb.py", line 258, in render self.compile(template, options)(self, body.append, values or {}) File "/home/odoo/src/odoo/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: 'website' object has no attribute 'is_breadcum' Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_firearm-registration_17135 File "<template>", line 2, in body_call_content_17133 AttributeError: 'website' object has no attribute 'is_breadcum' Error to render compiling AST AttributeError: 'website' object has no attribute 'is_breadcum' Template: website.firearm-registration Path: /t/t/div[1]/t Node: <t t-if="not website.is_breadcum"> <t t-if="website.breadcum_background_image"> <nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background:none;background-color:#{website.breadcrumb_color};padding:#{website.breadcrumb_height};"> <div class="container"> <h1> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </h1> <ul class="breadcrumb"> <li> <a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a> </li> <li class="active"> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </li> </ul> </div> </nav> </t> <t t-if="not website.breadcum_background_image"> <t t-set="bread_cum" t-value="website.image_url(website,'bread_cum_image')"/> <nav class="is-breadcrumb shop-breadcrumb" role="navigation" aria-label="breadcrumbs" t-attf-style="background-image:url(#{bread_cum}#);padding:#{website.breadcrumb_height};"> <div class="container"> <h1> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </h1> <ul class="breadcrumb"> <li> <a href="/page/homepage" t-attf-style="color:#{website.breadcrumb_text_color}">Home</a> </li> <li class="active"> <span t-attf-style="color:#{website.breadcrumb_text_color}">Warranty Registration</span> </li> </ul> </div> </nav> </t> </t>