Condition is cleaner, even if same.

This commit is contained in:
ldestailleur 2025-03-19 17:48:05 +01:00
parent 0bb37047be
commit 5555009d7b

View file

@ -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));
}
/**