|
@@ -28,6 +28,8 @@ require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
|
|
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
|
|
+require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
|
|
|
|
|
$langs->load("interventions");
|
|
|
$langs->load("sendings");
|
|
@@ -105,6 +107,7 @@ $form = new Form($db);
|
|
|
$formcompany = new FormCompany($db);
|
|
|
$contactstatic=new Contact($db);
|
|
|
$userstatic=new User($db);
|
|
|
+$formproject=new FormProjets($db);
|
|
|
|
|
|
llxHeader('',$langs->trans("Intervention"));
|
|
|
|
|
@@ -133,7 +136,7 @@ if ($id > 0 || ! empty($ref))
|
|
|
{
|
|
|
$langs->load("projects");
|
|
|
$morehtmlref.='<br>'.$langs->trans('Project') . ' ';
|
|
|
- if ($user->rights->commande->creer)
|
|
|
+ if ($user->rights->ficheinter->creer)
|
|
|
{
|
|
|
if ($action != 'classify')
|
|
|
//$morehtmlref.='<a href="' . $_SERVER['PHP_SELF'] . '?action=classify&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetProject')) . '</a> : ';
|