Removed useless initHook. Must use the context of main calling page.

This commit is contained in:
Laurent Destailleur 2024-01-26 01:08:59 +01:00
parent 5d60fb6da8
commit 66a628b306

View File

@ -5852,7 +5852,6 @@ class Product extends CommonObject
$this->stock_theorique += ($stock_commande_fournisseur - $stock_reception_fournisseur);
}
$hookmanager->initHooks(array('productdao'));
$parameters = array('id'=>$this->id, 'includedraftpoforvirtual' => $includedraftpoforvirtual);
// Note that $action and $object may have been modified by some hooks
$reshook = $hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action);