500: Internal Server Error
QWeb
Error message:
Error to render compiling AST AssertionError: precision_rounding must be positive, got -5.0 Template: website_sale.products Path: /t/t/div/div[3]/div[2]/div[1]/div[3]/form/t[5] Node: <t t-set="range_values" t-value="website.get_min_max_prices(search,category,attrib_values)"/>
The error occured while rendering the template website_sale.products
and evaluating the following expression: <t t-set="range_values" t-value="website.get_min_max_prices(search,category,attrib_values)"/>
Traceback
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/api.py", line 753, in get value = self._data[field][record._ids[0]] KeyError: 8277 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/fields.py", line 978, in __get__ value = env.cache.get(record, self) File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('product.template(8277,).price', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_products_12409 File "<template>", line 2, in body_call_content_12407 File "/mnt/extra-addons/emipro_theme_base/model/website.py", line 910, in get_min_max_prices price = product_template.price if pricelist else list_price File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1002, in __get__ self.compute_value(recs) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1087, in compute_value records._compute_field_value(self) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3905, in _compute_field_value getattr(self, field.compute)() File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_template.py", line 190, in _compute_template_price prices = self._compute_template_price_no_inverse() File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_template.py", line 216, in _compute_template_price_no_inverse prices = pricelist.get_products_price(self, quantities, partners) File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_pricelist.py", line 277, in get_products_price uom_id=uom_id File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_pricelist.py", line 236, in _compute_price_rule price = tools.float_round(price, precision_rounding=rule.price_round) File "/usr/lib/python3/dist-packages/odoo/tools/float_utils.py", line 55, in float_round precision_rounding=precision_rounding) File "/usr/lib/python3/dist-packages/odoo/tools/float_utils.py", line 30, in _float_check_precision "precision_rounding must be positive, got %s" % precision_rounding AssertionError: precision_rounding must be positive, got -5.0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 229, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 803, in dispatch r = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 345, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 93, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 341, in checked_call result.flatten() File "/usr/lib/python3/dist-packages/odoo/http.py", line 1230, in flatten self.response.append(self.render()) File "/usr/lib/python3/dist-packages/odoo/http.py", line 1223, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1154, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 335, in render return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 25, in render return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1162, in render return self.env[engine].render(self.id, qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 58, in render result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 260, in render self.compile(template, options)(self, body.append, values or {}) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 339, 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: precision_rounding must be positive, got -5.0 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/api.py", line 753, in get value = self._data[field][record._ids[0]] KeyError: 8277 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/fields.py", line 978, in __get__ value = env.cache.get(record, self) File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: ('product.template(8277,).price', None) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_products_12409 File "<template>", line 2, in body_call_content_12407 File "/mnt/extra-addons/emipro_theme_base/model/website.py", line 910, in get_min_max_prices price = product_template.price if pricelist else list_price File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1002, in __get__ self.compute_value(recs) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1087, in compute_value records._compute_field_value(self) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3905, in _compute_field_value getattr(self, field.compute)() File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_template.py", line 190, in _compute_template_price prices = self._compute_template_price_no_inverse() File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_template.py", line 216, in _compute_template_price_no_inverse prices = pricelist.get_products_price(self, quantities, partners) File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_pricelist.py", line 277, in get_products_price uom_id=uom_id File "/usr/lib/python3/dist-packages/odoo/addons/product/models/product_pricelist.py", line 236, in _compute_price_rule price = tools.float_round(price, precision_rounding=rule.price_round) File "/usr/lib/python3/dist-packages/odoo/tools/float_utils.py", line 55, in float_round precision_rounding=precision_rounding) File "/usr/lib/python3/dist-packages/odoo/tools/float_utils.py", line 30, in _float_check_precision "precision_rounding must be positive, got %s" % precision_rounding AssertionError: precision_rounding must be positive, got -5.0 Error to render compiling AST AssertionError: precision_rounding must be positive, got -5.0 Template: website_sale.products Path: /t/t/div/div[3]/div[2]/div[1]/div[3]/form/t[5] Node: <t t-set="range_values" t-value="website.get_min_max_prices(search,category,attrib_values)"/>