mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
add more
This commit is contained in:
@@ -507,7 +507,7 @@ class FormFile
|
||||
}
|
||||
|
||||
$printer = 0;
|
||||
$supportedmoduleparts = ['project', 'contract', 'facture', 'supplier_proposal', 'propal', 'proposal', 'order', 'commande', 'expedition', 'commande_fournisseur', 'expensereport', 'delivery', 'ticket', 'bom', 'mrp:mo'];
|
||||
$supportedmoduleparts = ['user', 'project', 'contract', 'facture', 'supplier_proposal', 'propal', 'proposal', 'order', 'commande', 'expedition', 'commande_fournisseur', 'expensereport', 'delivery', 'ticket', 'bom', 'mrp:mo'];
|
||||
// The direct print feature is implemented only for such elements
|
||||
if (in_array($modulepart, $supportedmoduleparts)) {
|
||||
$printer = ($user->hasRight('printing', 'read') && isModEnabled('printing'));
|
||||
|
||||
@@ -688,6 +688,8 @@ if (empty($reshook)) {
|
||||
$action = 'view';
|
||||
}
|
||||
|
||||
// Actions when printing a doc from card
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
|
||||
|
||||
$permissiondellink = $user->hasRight('ticket', 'write');
|
||||
include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php'; // Must be 'include', not 'include_once'
|
||||
|
||||
@@ -879,6 +879,9 @@ if (empty($reshook)) {
|
||||
// Actions to build doc
|
||||
$upload_dir = $conf->user->dir_output;
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
||||
|
||||
// Actions when printing a doc from card
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user