From 5555009d7b4bbfe44dcf93947445fac940c83a25 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 19 Mar 2025 17:48:05 +0100 Subject: [PATCH] Condition is cleaner, even if same. --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**