CybroOdoo / CybroAddons

281 stars 641 forks source link

[16.0]product_visibility_website : Error on shop page #273

Open Olimalt85 opened 1 year ago

Olimalt85 commented 1 year ago

Issue with the module "product_visibility_website" in odoo V16 community.

When i configure the product visibility in the parameters (for guests) to show only specific product or category :

image And then i go to the shop i get this error : image

Error message:

Error while render the template
TypeError: 'NoneType' object is not callable
Template: website_sale.products
Path: /t/t/t[14]
Node: <t t-set="hasPricelistDropdown" t-value="website_sale_pricelists and len(website_sale_pricelists)&gt;1"/>
The error occurred while rendering the template website_sale.products and evaluating the following expression: <t t-set="hasPricelistDropdown" t-value="website_sale_pricelists and len(website_sale_pricelists)&gt;1"/>

When i disable the product visibility configurator the guest can access to the shop page but not a connected user. image

The connected user's product visibility configuration : image