diff --git a/htdocs/commande/list_det.php b/htdocs/commande/list_det.php index 42f724870ba..860cd0de9ba 100644 --- a/htdocs/commande/list_det.php +++ b/htdocs/commande/list_det.php @@ -1897,6 +1897,10 @@ if ($resql) { if ($obj->warehouse > 0) { print img_picto('', 'stock', 'class="paddingrightonly"'); } + if (!is_object($formproduct)) { + require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php'; + $formproduct = new FormProduct($db); + } $formproduct->formSelectWarehouses($_SERVER['PHP_SELF'], $obj->warehouse, 'none'); print "\n"; if (!$i) {