Skip to content
Snippets Groups Projects
Commit 780b055c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Conditionnement des déplacements sur module déplacement

parent 9861beb0
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,9 @@ if ($socid > 0)
print "<a class=\"tabAction\" href=\"facture.php?action=create&socidp=$societe->id\">".$langs->trans("AddBill")."</a>";
}
print "<a class=\"tabAction\" href=\"deplacement/fiche.php?socid=$societe->id&amp;action=create\">".$langs->trans("AddTrip")."</a>";
if ($conf->deplacement->enabled) {
print "<a class=\"tabAction\" href=\"deplacement/fiche.php?socid=$societe->id&amp;action=create\">".$langs->trans("AddTrip")."</a>";
}
}
print '</div>';
......
......@@ -82,7 +82,7 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
}
if ($user->societe_id == 0)
if ($conf->deplacement->enabled && $user->societe_id == 0)
{
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "Dplacement");
}
......
......@@ -177,6 +177,11 @@ $langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", $conf->langage);
* Activation des modules
* et inclusion de librairies dépendantes
*/
define(MAIN_MODULE_DEPLACEMENT,1); // \todo A virer quand module déplacement dispo
if (defined("MAIN_MODULE_DEPLACEMENT"))
{
$conf->deplacement->enabled=MAIN_MODULE_DEPLACEMENT;
}
if (defined("MAIN_MODULE_EXTERNALRSS"))
{
$conf->externalrss->enabled=MAIN_MODULE_EXTERNALRSS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment