diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 750158d4e8d..f23ac3d1e95 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -502,10 +502,15 @@ if ($id || $ref) if ($action != 'add_price' && $action != 'updateprice') { - if ($user->rights->produit->creer || $user->rights->service->creer) + $parameters=array(); + $reshook=$hookmanager->executeHooks('addMoreActionsButtons',$parameters,$object,$action); // Note that $action and $object may have been modified by hook + if (empty($reshook)) { - print ''; - print $langs->trans("AddSupplierPrice").''; + if ($user->rights->produit->creer || $user->rights->service->creer) + { + print ''; + print $langs->trans("AddSupplierPrice").''; + } } }