Skip to content

Commit

Permalink
add missing hook in propal and invoice (contact and document)
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Aug 1, 2024
1 parent 8baa1aa commit b6d29a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/compta/facture/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
}

$result = restrictedArea($user, 'facture', $object->id);
$hookmanager->initHooks(array('invoicecontactcard', 'globalcard'));

$usercancreate = $user->hasRight("facture", "creer");

Expand Down
1 change: 1 addition & 0 deletions htdocs/compta/facture/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
$socid = $user->socid;
}
$result = restrictedArea($user, 'facture', $object->id, '');
$hookmanager->initHooks(array('invoicedocument', 'globalcard'));

$usercancreate = $user->hasRight("facture", "creer");

Expand Down

0 comments on commit b6d29a4

Please sign in to comment.