500: Internal Server Error
QWeb
Thông điệp lỗi:
Error to render compiling AST AttributeError: 'survey.survey' object has no attribute 'certificate' Template: survey.layout Path: /t/html/body/div[2]/t[1] Node: <t t-set="no_header" t-value="no_header or survey.certificate"/>
Đã xảy ra lỗi trong khi hiển thị mẫu survey.layout
và đánh giá biểu thức sau: <t t-set="no_header" t-value="no_header or survey.certificate"/>
Tìm lại
Traceback (most recent call last): File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 807, in dispatch r = self._call_function(**self.params) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/odoo-knst-production/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 351, in checked_call result.flatten() File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 1251, in flatten self.response.append(self.render()) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 1244, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_ui_view.py", line 1709, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/odoo/odoo-knst-production/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 "/home/odoo/odoo-knst-production/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 "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_ui_view.py", line 1717, in _render return self.env[engine]._render(self.id, qcontext) File "/home/odoo/odoo-knst-production/odoo/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/odoo/odoo-knst-production/odoo/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/home/odoo/odoo-knst-production/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_survey_survey_page_fill_51010 File "/home/odoo/odoo-knst-production/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) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 807, in dispatch r = self._call_function(**self.params) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/odoo-knst-production/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 351, in checked_call result.flatten() File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 1251, in flatten self.response.append(self.render()) File "/home/odoo/odoo-knst-production/odoo/odoo/http.py", line 1244, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_ui_view.py", line 1709, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/odoo/odoo-knst-production/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 "/home/odoo/odoo-knst-production/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 "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/ir_ui_view.py", line 1717, in _render return self.env[engine]._render(self.id, qcontext) File "/home/odoo/odoo-knst-production/odoo/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/odoo/odoo-knst-production/odoo/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/odoo/odoo-knst-production/odoo/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/home/odoo/odoo-knst-production/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_survey_survey_page_fill_51010 File "/home/odoo/odoo-knst-production/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: 'survey.survey' object has no attribute 'certificate' Traceback (most recent call last): File "/home/odoo/odoo-knst-production/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_survey_layout_51121 AttributeError: 'survey.survey' object has no attribute 'certificate' Error to render compiling AST AttributeError: 'survey.survey' object has no attribute 'certificate' Template: survey.layout Path: /t/html/body/div[2]/t[1] Node: <t t-set="no_header" t-value="no_header or survey.certificate"/>