500: Internal Server Error
Error message:
Error to render compiling AST AttributeError: 'NoneType' object has no attribute 'website_order_line' Template: website_sale.total Path: /templates/t/div[1] Node: <div class="row" t-if="any((line.product_id.qty_available_location < line.product_uom_qty) for line in website_sale_order.website_order_line)"> <div class="col-xs-12"> <div class="alert alert-danger" role="alert"> <strong> <strong> <strong> <strong data-oe-id="1423" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/data/xpath/div/div[1]/div[1]/strong[1]">Product Stock Status Availibity Warning:&nbsp;Your order quantity has exceeded our stock. If you want to place more wheels, please do not hesitate to contact us(service@pdweu.com). Thank you for your patience.</strong> </strong> </strong> </strong> <ul> <t t-foreach="website_sale_order.website_order_line" t-as="line"> <t t-if="line.product_id.website_product_status"> <t t-if="line.product_id.qty_available_location < line.product_uom_qty"> <li> <span t-field="line.product_id"/> <strong>Available Qty:<span t-esc=""%.0f" % line.product_id.qty_available_location"/></strong> </li> </t> </t> </t> </ul> </div> </div> </div>
Traceback (most recent call last): File "/odoo/odoo-server/odoo/addons/website/models/ir_http.py", line 273, in _handle_exception response = super(Http, cls)._handle_exception(exception) File "/odoo/odoo-server/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception return request._handle_exception(exception) File "/odoo/odoo-server/odoo/http.py", line 768, in _handle_exception return super(HttpRequest, self)._handle_exception(exception) File "/odoo/odoo-server/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch result = request.dispatch() File "/odoo/odoo-server/odoo/http.py", line 827, in dispatch r = self._call_function(**self.params) File "/odoo/odoo-server/odoo/http.py", line 333, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/odoo-server/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/odoo/odoo-server/odoo/http.py", line 329, in checked_call result.flatten() File "/odoo/odoo-server/odoo/http.py", line 1259, in flatten self.response.append(self.render()) File "/odoo/odoo-server/odoo/http.py", line 1252, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "/odoo/odoo-server/odoo/addons/base/ir/ir_ui_view.py", line 1039, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/odoo/odoo-server/odoo/addons/website/models/ir_ui_view.py", line 110, in render return super(View, self).render(values, engine=engine) File "/odoo/odoo-server/odoo/addons/web_editor/models/ir_ui_view.py", line 26, in render return super(IrUiView, self).render(values=values, engine=engine) File "/odoo/odoo-server/odoo/addons/base/ir/ir_ui_view.py", line 1059, in render return self.env[engine].render(self.id, qcontext) File "/odoo/custom/enterprise/website_version/models/ir_qweb.py", line 43, in render return super(QWeb, self).render(id_or_xml_id, values, **options) File "/odoo/odoo-server/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 53, in render return super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/odoo/odoo-server/odoo/addons/base/ir/ir_qweb/qweb.py", line 248, in render self.compile(template, options)(self, body.append, values or {}) File "/odoo/odoo-server/odoo/addons/base/ir/ir_qweb/qweb.py", line 317, in _compiled_fn raise e QWebException: 'NoneType' object has no attribute 'website_order_line' Traceback (most recent call last): File "/odoo/odoo-server/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn return compiled(self, append, values, options, log) File "<template>", line 1, in template_website_sale_total_1901074 AttributeError: 'NoneType' object has no attribute 'website_order_line' Error to render compiling AST AttributeError: 'NoneType' object has no attribute 'website_order_line' Template: website_sale.total Path: /templates/t/div[1] Node: <div class="row" t-if="any((line.product_id.qty_available_location < line.product_uom_qty) for line in website_sale_order.website_order_line)"> <div class="col-xs-12"> <div class="alert alert-danger" role="alert"> <strong> <strong> <strong> <strong data-oe-id="1423" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/data/xpath/div/div[1]/div[1]/strong[1]">Product Stock Status Availibity Warning:&nbsp;Your order quantity has exceeded our stock. If you want to place more wheels, please do not hesitate to contact us(service@pdweu.com). Thank you for your patience.</strong> </strong> </strong> </strong> <ul> <t t-foreach="website_sale_order.website_order_line" t-as="line"> <t t-if="line.product_id.website_product_status"> <t t-if="line.product_id.qty_available_location < line.product_uom_qty"> <li> <span t-field="line.product_id"/> <strong>Available Qty:<span t-esc=""%.0f" % line.product_id.qty_available_location"/></strong> </li> </t> </t> </t> </ul> </div> </div> </div>