diff --git a/htdocs/product/stock/movement_list.php b/htdocs/product/stock/movement_list.php index 98b1d48014d..ad7be8d674b 100644 --- a/htdocs/product/stock/movement_list.php +++ b/htdocs/product/stock/movement_list.php @@ -942,12 +942,17 @@ if ($action == "transfert") { if ((empty($action) || $action == 'list') && $id > 0) { print "
\n"; - if ($user->rights->stock->mouvement->creer) { - print ''.$langs->trans("CorrectStock").''; - } + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been + // modified by hook + if (empty($reshook)) { + if ($user->rights->stock->mouvement->creer) { + print ''.$langs->trans("CorrectStock").''; + } - if ($user->rights->stock->mouvement->creer) { - print ''.$langs->trans("TransferStock").''; + if ($user->rights->stock->mouvement->creer) { + print ''.$langs->trans("TransferStock").''; + } } print '

';