Do not recommend inactive product
Closes #13477 (grafted from 9a61ec4d57fa805d320dee4e57d2e4a6acb87fd3) --HG-- branch : 7.0
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user