From 261d8aa2173da1fcaf5255b501613abe45acf32f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 26 Aug 2024 17:04:05 +0200 Subject: [PATCH] Do not recommend inactive product Closes #13477 (grafted from 9a61ec4d57fa805d320dee4e57d2e4a6acb87fd3) --HG-- branch : 7.0 --- modules/sale_product_recommendation/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sale_product_recommendation/sale.py b/modules/sale_product_recommendation/sale.py index edc865c5f2..5b6e1fe5c5 100644 --- a/modules/sale_product_recommendation/sale.py +++ b/modules/sale_product_recommendation/sale.py @@ -93,7 +93,7 @@ class SaleMixin: @classmethod def _is_recommendable_product(cls, product): - return product.salable and product.recommendable + return product.active and product.salable and product.recommendable class Sale(SaleMixin, metaclass=PoolMeta):