CybroOdoo / CybroAddons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[16.0]product_visibility_website : Error on shop page

Olimalt85 opened this issue · comments

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