Skip to content

Commit

Permalink
Merge pull request #11 from coopiteasy/11.0-fix-filter_product_varian…
Browse files Browse the repository at this point in the history
…t_on_product_page

[FIX] w_s_customer_type: filter product variant when on a product page
  • Loading branch information
remytms authored Dec 14, 2021
2 parents 8c9726b + ce7962e commit a3793f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website_sale_customer_type/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ def product(self, product, category="", search="", **kwargs):
)
else:
alt_product_ids = product.alternative_product_ids
response.qcontext["allowed_products"] = allowed_products
response.qcontext["restrict_product"] = (
request.env.user.website_restrict_product
)
response.qcontext["alt_product_ids"] = alt_product_ids
return response

Expand Down

0 comments on commit a3793f4

Please sign in to comment.