Do not recommend inactive product

Closes #13477
(grafted from 9a61ec4d57fa805d320dee4e57d2e4a6acb87fd3)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2024-08-26 17:04:05 +02:00
parent 6283a4ceb7
commit 261d8aa217
+1 -1
View File
@@ -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):