diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 877eb1becd6..34730711535 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -576,7 +576,7 @@ if ($resql) $moreforfilter .= $formother->select_categories('customer', $search_categ_cus, 'search_categ_cus', 1); $moreforfilter .= ''; } - if (!empty($conf->expedition->enabled)){ + if (!empty($conf->expedition->enabled) && $conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER = 1){ require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php'; $formproduct = new FormProduct($db); $moreforfilter .= '