500: Internal Server Error
QWeb
Error message:
Error to render compiling AST ParseError: not well-formed (invalid token): line 1, column 5 Template: website_sale.shop_product_carousel Path: /t/div/div[1]/div/t/div/div[2] Node: <div t-else="" t-field="product_image.image_1920" class="d-flex align-items-center justify-content-center h-100" t-options="{"widget": "image", "preview_image": "image_1024", "class": "product_detail_img mh-100", "alt-field": "name", "zoom": product_image.can_image_1024_be_zoomed and "image_1920"}"/>
The error occured while rendering the template website_sale.shop_product_carousel
and evaluating the following expression: <div t-else="" t-field="product_image.image_1920" class="d-flex align-items-center justify-content-center h-100" t-options="{"widget": "image", "preview_image": "image_1024", "class": "product_detail_img mh-100", "alt-field": "name", "zoom": product_image.can_image_1024_be_zoomed and "image_1920"}"/>
Traceback
Traceback (most recent call last): File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/odoo-14/odoo/odoo/http.py", line 813, in dispatch r = self._call_function(**self.params) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 370, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/odoo-14/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 361, in checked_call result.flatten() File "/home/odoo/odoo-14/odoo/odoo/http.py", line 1287, in flatten self.response.append(self.render()) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 1280, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/ir_ui_view.py", line 1727, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/odoo/odoo-14/odoo/addons/website/models/ir_ui_view.py", line 423, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/odoo/odoo-14/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-14/odoo/odoo/addons/base/models/ir_ui_view.py", line 1735, in _render return self.env[engine]._render(self.id, qcontext) File "/home/odoo/odoo-14/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-14/odoo/odoo/addons/base/models/qweb.py", line 254, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 329, in _compiled_fn raise e File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 327, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_product_8868 File "<template>", line 7, in body_call_content_8866 File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 334, 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-14/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/odoo-14/odoo/odoo/http.py", line 813, in dispatch r = self._call_function(**self.params) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 370, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/odoo-14/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 361, in checked_call result.flatten() File "/home/odoo/odoo-14/odoo/odoo/http.py", line 1287, in flatten self.response.append(self.render()) File "/home/odoo/odoo-14/odoo/odoo/http.py", line 1280, in render return env["ir.ui.view"]._render_template(self.template, self.qcontext) File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/ir_ui_view.py", line 1727, in _render_template return self.browse(self.get_view_id(template))._render(values, engine) File "/home/odoo/odoo-14/odoo/addons/website/models/ir_ui_view.py", line 423, in _render return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/odoo/odoo-14/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-14/odoo/odoo/addons/base/models/ir_ui_view.py", line 1735, in _render return self.env[engine]._render(self.id, qcontext) File "/home/odoo/odoo-14/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-14/odoo/odoo/addons/base/models/qweb.py", line 254, in _render self.compile(template, options)(self, body.append, values or {}) File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 329, in _compiled_fn raise e File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 327, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_product_8868 File "<template>", line 7, in body_call_content_8866 File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 334, 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: not well-formed (invalid token): line 1, column 5 Traceback (most recent call last): File "/home/odoo/odoo-14/odoo/odoo/api.py", line 805, in get field_cache = field_cache[record.env.cache_key(field)] KeyError: (None,) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 994, in __get__ value = env.cache.get(record, self) File "/home/odoo/odoo-14/odoo/odoo/api.py", line 809, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: 'product.product(316,).image_1920' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/qweb.py", line 327, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_shop_product_carousel_8892 File "<template>", line 6, in foreach_8888 File "/home/odoo/odoo-14/odoo/odoo/addons/base/models/ir_qweb.py", line 380, in _get_field content = converter.record_to_html(record, field_name, field_options) File "/home/odoo/odoo-14/odoo/addons/web/models/ir_qweb.py", line 73, in record_to_html src, src_zoom = self._get_src_urls(record, field_name, options) File "/home/odoo/odoo-14/odoo/addons/web/models/ir_qweb.py", line 52, in _get_src_urls if options.get('zoom') and getattr(record, options['zoom'], None): File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 1043, in __get__ self.compute_value(recs) File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 2071, in compute_value super().compute_value(records) File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 1199, in compute_value records._compute_field_value(self) File "/home/odoo/odoo-14/odoo/addons/mail/models/mail_thread.py", line 410, in _compute_field_value return super()._compute_field_value(field) File "/home/odoo/odoo-14/odoo/odoo/models.py", line 4089, in _compute_field_value odoo.fields.determine(field.compute, self) File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 83, in determine return needle(*args) File "/home/odoo/odoo-14/odoo/addons/product/models/product.py", line 156, in _compute_image_1920 record.image_1920 = record.image_variant_1920 or record.product_tmpl_id.image_1920 File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 1131, in __set__ self.write(protected_records, value) File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 2197, in write new_value = self._image_process(value) File "/home/odoo/odoo-14/odoo/odoo/fields.py", line 2213, in _image_process return image_process(value, File "/home/odoo/odoo-14/odoo/odoo/tools/image.py", line 316, in image_process image = ImageProcess(base64_source, verify_resolution) File "/home/odoo/odoo-14/odoo/odoo/tools/image.py", line 89, in __init__ self.image = image_fix_orientation(self.image) File "/home/odoo/odoo-14/odoo/odoo/tools/image.py", line 425, in image_fix_orientation exif = getexif() File "/home/odoo/odoo-14/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 977, in getexif return super().getexif() File "/home/odoo/odoo-14/lib/python3.8/site-packages/PIL/Image.py", line 1320, in getexif root = xml.etree.ElementTree.fromstring(xmp_tags) File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1320, in XML parser.feed(text) xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 5 Error to render compiling AST ParseError: not well-formed (invalid token): line 1, column 5 Template: website_sale.shop_product_carousel Path: /t/div/div[1]/div/t/div/div[2] Node: <div t-else="" t-field="product_image.image_1920" class="d-flex align-items-center justify-content-center h-100" t-options="{"widget": "image", "preview_image": "image_1024", "class": "product_detail_img mh-100", "alt-field": "name", "zoom": product_image.can_image_1024_be_zoomed and "image_1920"}"/>