parent
fe735d4e67
commit
d9e9364ddf
@ -87,6 +87,11 @@ $usercanread = (($user->rights->stock->lire));
|
|||||||
$usercancreate = (($user->rights->stock->creer));
|
$usercancreate = (($user->rights->stock->creer));
|
||||||
$usercandelete = (($user->rights->stock->supprimer));
|
$usercandelete = (($user->rights->stock->supprimer));
|
||||||
|
|
||||||
|
$parameters=array('id'=>$id, 'ref'=>$ref);
|
||||||
|
$reshook=$hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
if (empty($reshook))
|
||||||
|
{
|
||||||
// Ajout entrepot
|
// Ajout entrepot
|
||||||
if ($action == 'add' && $user->rights->stock->creer)
|
if ($action == 'add' && $user->rights->stock->creer)
|
||||||
{
|
{
|
||||||
@ -221,6 +226,7 @@ if ($cancel == $langs->trans("Cancel"))
|
|||||||
$upload_dir = $conf->stock->dir_output;
|
$upload_dir = $conf->stock->dir_output;
|
||||||
$permissioncreate = $user->rights->stock->creer;
|
$permissioncreate = $user->rights->stock->creer;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user