Merge pull request #17540 from ibuiv/ibuiv-supplierorder-hooks
New Hooks for Supplier Order Card tabs
This commit is contained in:
commit
e3cb04e235
@ -45,6 +45,7 @@ if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
$result = restrictedArea($user, 'fournisseur', $id, 'commande_fournisseur', 'commande');
|
||||
$hookmanager->initHooks(array('ordersuppliercardcontact'));
|
||||
|
||||
$object = new CommandeFournisseur($db);
|
||||
|
||||
|
||||
@ -70,6 +70,7 @@ if (!$sortfield) {
|
||||
$sortfield = "name";
|
||||
}
|
||||
|
||||
$hookmanager->initHooks(array('ordersuppliercarddocument'));
|
||||
|
||||
$object = new CommandeFournisseur($db);
|
||||
if ($object->fetch($id, $ref) < 0) {
|
||||
|
||||
@ -78,6 +78,7 @@ if (!$user->rights->fournisseur->commande->lire) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
$hookmanager->initHooks(array('ordersuppliercardinfo'));
|
||||
|
||||
|
||||
|
||||
|
||||
@ -48,6 +48,8 @@ $result = restrictedArea($user, 'fournisseur', $id, 'commande_fournisseur', 'com
|
||||
$object = new CommandeFournisseur($db);
|
||||
$object->fetch($id, $ref);
|
||||
|
||||
$hookmanager->initHooks(array('ordersuppliercardnote'));
|
||||
|
||||
$permissionnote = ($user->rights->fournisseur->commande->creer || $user->rights->supplier_order->creer); // Used by the include of actions_setnotes.inc.php
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user