diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index cdef8e18db7..3ed33ef5235 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -4085,7 +4085,7 @@ class Product extends CommonObject function load_virtual_stock() { // phpcs:enable - global $conf, $action; + global $conf, $hookmanager, $action; $stock_commande_client=0; $stock_commande_fournisseur=0;