diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 9377041bac2..19b3a2681c7 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -6738,7 +6738,7 @@ class Product extends CommonObject */ public function isStockManaged() { - return (($this->isProduct() || ($this->isProduct() && getDolGlobalString('STOCK_SUPPORTS_SERVICES'))) && ($this->stockable_product > 0)); + return (($this->isProduct() || ($this->isService() && getDolGlobalString('STOCK_SUPPORTS_SERVICES'))) && ($this->stockable_product > 0)); } /**