diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 19277e330d0..d51478e167f 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -81,9 +81,12 @@ $h++; if($product->type == 0) { - $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; - $head[$h][1] = 'Stock'; - $h++; + if ($conf->stock->enabled) + { + $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; + $head[$h][1] = 'Stock'; + $h++; + } } $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;