Impacted Version : 12.0
i get this error when i open /shop
File "/opt/odoo/odoo12/odoo/addons/portal/controllers/portal.py", line 32, in pager
page_count = int(math.ceil(float(total) / step))
ZeroDivisionError: float division by zeroOdoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Impacted Version : 12.0
i get this error when i open /shop
File "/opt/odoo/odoo12/odoo/addons/portal/controllers/portal.py", line 32, in pager
page_count = int(math.ceil(float(total) / step))
ZeroDivisionError: float division by zeroHi,
Above error appears when ppg(product per page) is set to 0.
In Odoo 13 you can set ppg inside Website which is manage "shop_ppg" field,
https://nimb.ws/GB2F3b
So may be currently zero is set on your Odoo 13.
But as per your log it seems you are using the Odoo 12 and in Odoo 12 it is only possible when you following below cases,
Either you are trying to access shop URL like,
/shop?ppg=0
SOLUTION: Try to access /shop?ppg=20
Either someone has updated PPG as PPG=0 directly in "website_sale/controllers/main.py".
SOLUTION: So update it as PPG=20
Else any third party extension causing this issue.
So for solution you can try below URL,
/shop?ppg=20
Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
3
ago 24
|
2927 | ||
|
|
0
oct 25
|
217 | ||
|
|
1
oct 25
|
472 | ||
|
|
2
oct 25
|
2057 | ||
|
|
0
sept 25
|
868 |