500: Internal Server Error
QWeb
پیام خطا:
Error to render compiling AST ValueError: No record found for unique ID website_sale_customize.website_product_brands_filter. It may have been deleted. Template: website_sale.products Path: /t/t/div/div[2]/div[2]/div[1]/div[1]/form/ul Node: <ul class="nav nav-pills flex-column filter-collapsed" t-att-style="'display:none;' if not attributes and (request.website.viewref( 				'website_sale_customize.website_product_brands_filter').active and not brands) and ( 				request.website.viewref( 				'website_sale_customize.website_product_tags').active and not tags) else ''"> <t t-foreach="attributes" t-as="a"> <li t-if="a.value_ids and len(a.value_ids) > 1" class="nav-item"> <div> <strong t-field="a.name"/> </div> <t t-if="a.display_type == 'select'"> <select class="form-control" name="attrib"> <option value=""/> <t t-foreach="a.value_ids" t-as="v"> <option t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name" t-att-selected="v.id in attrib_set"/> </t> </select> </t> <t t-if="a.display_type == 'radio'"> <ul class="nav nav-pills flex-column"> <t t-foreach="a.value_ids" t-as="v"> <li class="nav-item"> <label style="padding: 0; margin: 0" t-attf-class="nav-link#{' active' if v.id in attrib_set else ''}"> <input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None"/> <span style="font-weight: normal" t-field="v.name"/> </label> </li> </t> </ul> </t> <t t-if="a.display_type == 'color'"> <t t-foreach="a.value_ids" t-as="v"> <label t-attf-style="background-color:#{v.html_color or v.name}" t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}"> <input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None" t-att-title="v.name"/> </label> </t> </t> </li> </t> </ul>
خطایی هنگام رندر کردن قالب رخ داد website_sale.products
و ارزیابی عبارت زیر: <ul class="nav nav-pills flex-column filter-collapsed" t-att-style="'display:none;' if not attributes and (request.website.viewref( 				'website_sale_customize.website_product_brands_filter').active and not brands) and ( 				request.website.viewref( 				'website_sale_customize.website_product_tags').active and not tags) else ''">
<t t-foreach="attributes" t-as="a">
<li t-if="a.value_ids and len(a.value_ids) > 1" class="nav-item">
<div>
<strong t-field="a.name"/>
</div>
<t t-if="a.display_type == 'select'">
<select class="form-control" name="attrib">
<option value=""/>
<t t-foreach="a.value_ids" t-as="v">
<option t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name" t-att-selected="v.id in attrib_set"/>
</t>
</select>
</t>
<t t-if="a.display_type == 'radio'">
<ul class="nav nav-pills flex-column">
<t t-foreach="a.value_ids" t-as="v">
<li class="nav-item">
<label style="padding: 0; margin: 0" t-attf-class="nav-link#{' active' if v.id in attrib_set else ''}">
<input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None"/>
<span style="font-weight: normal" t-field="v.name"/>
</label>
</li>
</t>
</ul>
</t>
<t t-if="a.display_type == 'color'">
<t t-foreach="a.value_ids" t-as="v">
<label t-attf-style="background-color:#{v.html_color or v.name}" t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}">
<input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None" t-att-title="v.name"/>
</label>
</t>
</t>
</li>
</t>
</ul>
ردیابی
Traceback (most recent call last): File "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/opt/odoo/odoo14.0/odoo/http.py", line 806, in dispatch r = self._call_function(**self.params) File "/opt/odoo/odoo14.0/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo14.0/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo14.0/odoo/http.py", line 350, in checked_call result.flatten() File "/opt/odoo/odoo14.0/odoo/http.py", line 1273, in flatten self.response.append(self.render()) File "/opt/odoo/odoo14.0/odoo/http.py", line 1266, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/opt/odoo/odoo14.0/addons_extra/app_odoo_customize/models/ir_ui_view.py", line 17, in _render_template return super(View, self)._render_template(template, values=values, engine=engine) File "/opt/odoo/odoo14.0/addons_l10n/l10n_ir_base/models/ir_ui_view.py", line 12, in _render_template return super(View, self)._render_template(template, values, engine) File "/opt/odoo/odoo14.0/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 "/opt/odoo/odoo14.0/odoo/addons/website/models/ir_ui_view.py", line 420, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/opt/odoo/odoo14.0/odoo/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 "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_ui_view.py", line 1716, in _render return self.env[engine]._render(self.id, qcontext) File "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_qweb.py", line 55, in _render result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context) File "/opt/odoo/odoo14.0/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/opt/odoo/odoo14.0/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 "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/opt/odoo/odoo14.0/odoo/http.py", line 806, in dispatch r = self._call_function(**self.params) File "/opt/odoo/odoo14.0/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo14.0/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo14.0/odoo/http.py", line 350, in checked_call result.flatten() File "/opt/odoo/odoo14.0/odoo/http.py", line 1273, in flatten self.response.append(self.render()) File "/opt/odoo/odoo14.0/odoo/http.py", line 1266, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/opt/odoo/odoo14.0/addons_extra/app_odoo_customize/models/ir_ui_view.py", line 17, in _render_template return super(View, self)._render_template(template, values=values, engine=engine) File "/opt/odoo/odoo14.0/addons_l10n/l10n_ir_base/models/ir_ui_view.py", line 12, in _render_template return super(View, self)._render_template(template, values, engine) File "/opt/odoo/odoo14.0/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 "/opt/odoo/odoo14.0/odoo/addons/website/models/ir_ui_view.py", line 420, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/opt/odoo/odoo14.0/odoo/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 "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_ui_view.py", line 1716, in _render return self.env[engine]._render(self.id, qcontext) File "/opt/odoo/odoo14.0/odoo/addons/base/models/ir_qweb.py", line 55, in _render result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context) File "/opt/odoo/odoo14.0/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/opt/odoo/odoo14.0/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: No record found for unique ID website_sale_customize.website_product_brands_filter. It may have been deleted. Traceback (most recent call last): File "/opt/odoo/odoo14.0/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_sale_products_1097 File "<template>", line 1, in body_call_content_1095 File "/opt/odoo/odoo14.0/odoo/addons/website/models/website.py", line 719, in viewref raise ValueError('No record found for unique ID %s. It may have been deleted.' % (view_id)) ValueError: No record found for unique ID website_sale_customize.website_product_brands_filter. It may have been deleted. Error to render compiling AST ValueError: No record found for unique ID website_sale_customize.website_product_brands_filter. It may have been deleted. Template: website_sale.products Path: /t/t/div/div[2]/div[2]/div[1]/div[1]/form/ul Node: <ul class="nav nav-pills flex-column filter-collapsed" t-att-style="'display:none;' if not attributes and (request.website.viewref( 				'website_sale_customize.website_product_brands_filter').active and not brands) and ( 				request.website.viewref( 				'website_sale_customize.website_product_tags').active and not tags) else ''"> <t t-foreach="attributes" t-as="a"> <li t-if="a.value_ids and len(a.value_ids) > 1" class="nav-item"> <div> <strong t-field="a.name"/> </div> <t t-if="a.display_type == 'select'"> <select class="form-control" name="attrib"> <option value=""/> <t t-foreach="a.value_ids" t-as="v"> <option t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name" t-att-selected="v.id in attrib_set"/> </t> </select> </t> <t t-if="a.display_type == 'radio'"> <ul class="nav nav-pills flex-column"> <t t-foreach="a.value_ids" t-as="v"> <li class="nav-item"> <label style="padding: 0; margin: 0" t-attf-class="nav-link#{' active' if v.id in attrib_set else ''}"> <input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None"/> <span style="font-weight: normal" t-field="v.name"/> </label> </li> </t> </ul> </t> <t t-if="a.display_type == 'color'"> <t t-foreach="a.value_ids" t-as="v"> <label t-attf-style="background-color:#{v.html_color or v.name}" t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}"> <input type="checkbox" name="attrib" t-att-value="'%s-%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else None" t-att-title="v.name"/> </label> </t> </t> </li> </t> </ul>