add project
This commit is contained in:
parent
889a716aee
commit
f757b08f97
2 changed files with 5 additions and 1 deletions
|
|
@ -507,8 +507,9 @@ class FormFile
|
|||
}
|
||||
|
||||
$printer = 0;
|
||||
$modulepartssupported = ['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, array('contract', 'facture', 'supplier_proposal', 'propal', 'proposal', 'order', 'commande', 'expedition', 'commande_fournisseur', 'expensereport', 'delivery', 'ticket', 'bom', 'mrp:mo'))) {
|
||||
if (in_array($modulepart, $modulepartssupported)) {
|
||||
$printer = ($user->hasRight('printing', 'read') && isModEnabled('printing'));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -614,6 +614,9 @@ if (empty($reshook)) {
|
|||
}
|
||||
}
|
||||
|
||||
// Actions when printing a doc from card
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
|
||||
|
||||
// Actions to send emails
|
||||
$triggersendname = 'PROJECT_SENTBYMAIL';
|
||||
$paramname = 'id';
|
||||
|
|
|
|||
Loading…
Reference in a new issue