Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uvid-sinisa opened this issue May 23, 2024 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@uvid-sinisa
Copy link

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.

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant