e-commerce icon indicating copy to clipboard operation
e-commerce copied to clipboard

[16.0][website_sale_stock_list_preview] UncaughtPromiseError after upgrading to latest odoo revision

Open uvid-sinisa opened this issue 1 year ago • 0 comments

Module

website_sale_stock_list_preview

Describe the bug

After the latest Odoo update on odoo.sh, while opening the product list preview on the webshop we get the following error:

UncaughtPromiseError Uncaught Promise > QWeb2 - template['website_sale_stock.product_availability']: Runtime Error: TypeError: dict.formatQuantity is not a function

Error: QWeb2 - template['website_sale_stock.product_availability']: Runtime Error: TypeError: dict.formatQuantity is not a function
    exception@https://og-grafika.odoo.com/web/assets/14317-f0c93ee/1/web.assets_frontend_lazy.min.js:5494:7
    anonymous@https://og-grafika.odoo.com/web/assets/14317-f0c93ee/1/web.assets_frontend_lazy.min.js line 5535 > Function:84:29
    _render@https://og-grafika.odoo.com/web/assets/14317-f0c93ee/1/web.assets_frontend_lazy.min.js:5534:296
    render@https://og-grafika.odoo.com/web/assets/14317-f0c93ee/1/web.assets_frontend_lazy.min.js:5534:151
    _render_stock/<@https://og-grafika.odoo.com/web/assets/14317-f0c93ee/1/web.assets_frontend_lazy.min.js:9919:84

Revision 16.0.20240506 is working fine. Seems that changes made with commit: [FIX] website_sale_stock: website stock quantity formatting are causing the problem

To Reproduce

Affected versions: 16.0.1.0.0

Steps to reproduce the behavior:

  1. Update Odoo to the latest version, make sure that module is installed and configured.
  2. Navigate to the product list preview on the webshop.

Expected behavior The stock availability of each product should be displayed on the product list preview.

uvid-sinisa avatar May 23 '24 08:05 uvid-sinisa