add project

This commit is contained in:
Frédéric FRANCE 2025-11-27 14:50:14 +01:00
parent 889a716aee
commit f757b08f97
No known key found for this signature in database
GPG key ID: C06E4A9656127239
2 changed files with 5 additions and 1 deletions

View file

@ -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'));
}

View file

@ -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';