diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index 2a074b984f5..c3cb5fe257b 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -533,7 +533,7 @@ if ($object->id > 0) { print ''; } // Warehouse - if (!empty($conf->stock->enabled)) { + if (!empty($conf->stock->enabled) && !empty($conf->global->SOCIETE_ASK_FOR_WAREHOUSE)) { $langs->load('stocks'); require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php'; $formproduct = new FormProduct($db);