Adding hooks on product stat in order to allow to expand stat on other modules

This commit is contained in:
MOREAU FRANCK 2021-06-08 15:47:20 +02:00
parent 207dc1df55
commit 2e66509245

View File

@ -360,7 +360,7 @@ function product_lot_admin_prepare_head()
*/ */
function show_stats_for_company($product, $socid) function show_stats_for_company($product, $socid)
{ {
global $conf, $langs, $user, $db; global $conf, $langs, $user, $db, $hookmanager;
$form = new Form($db); $form = new Form($db);
$hookmanager->initHooks(array('productstats')); $hookmanager->initHooks(array('productstats'));
$nblines = 0; $nblines = 0;