diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 1e72e151044..21bfad54f0e 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -664,7 +664,7 @@ class MouvementStock extends CommonObject default: if ($origintype) { - require_once DOL_DOCUMENT_ROOT.'/'.$origintype.'/class/'.$origintype.'.class.php'; + dol_include_once ('/'.$origintype.'/class/'.$origintype.'.class.php'); $classname = ucfirst($origintype); $origin = new $classname($this->db); }