Fix: mise jour du menu tiers
This commit is contained in:
parent
87419cb8ea
commit
58c8808358
@ -179,6 +179,7 @@ class MenuLeft {
|
||||
if ($user->rights->societe->creer)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?action=create", $langs->trans("MenuNewThirdParty"));
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&private=1",$langs->trans("MenuNewPrivateIndividual"));
|
||||
}
|
||||
|
||||
if(is_dir("societe/groupe"))
|
||||
@ -197,8 +198,7 @@ class MenuLeft {
|
||||
// Sécurité accés client
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=suppliers&action=create&type=f",$langs->trans("MenuNewCompany"), 2, $user->rights->societe->creer && $user->rights->fournisseur->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=suppliers&action=create&type=f&private=1",$langs->trans("MenuNewPrivateIndividual"), 2, $user->rights->societe->creer && $user->rights->fournisseur->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=suppliers&action=create&type=f",$langs->trans("MenuNewSupplier"), 2, $user->rights->societe->creer && $user->rights->fournisseur->lire);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=suppliers&type=f",$langs->trans("Contacts"), 2, $user->rights->societe->lire && $user->rights->fournisseur->lire);
|
||||
}
|
||||
@ -209,8 +209,7 @@ class MenuLeft {
|
||||
$langs->load("commercial");
|
||||
$newmenu->add(DOL_URL_ROOT."/comm/prospect/prospects.php?leftmenu=prospects", $langs->trans("Prospects"), 1, $user->rights->societe->lire);
|
||||
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=prospects&action=create&type=p", $langs->trans("MenuNewCompany"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=prospects&action=create&type=p&private=1", $langs->trans("MenuNewPrivateIndividual"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=prospects&action=create&type=p", $langs->trans("MenuNewProspect"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=customers&type=p", $langs->trans("Contacts"), 2, $user->rights->societe->lire);
|
||||
}
|
||||
|
||||
@ -220,8 +219,7 @@ class MenuLeft {
|
||||
$langs->load("commercial");
|
||||
$newmenu->add(DOL_URL_ROOT."/comm/clients.php?leftmenu=customers", $langs->trans("Customers"), 1, $user->rights->societe->lire);
|
||||
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=customers&action=create&type=c", $langs->trans("MenuNewCompany"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=customers&action=create&type=c&private=1", $langs->trans("MenuNewPrivateIndividual"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/soc.php?leftmenu=customers&action=create&type=c", $langs->trans("MenuNewCustomer"), 2, $user->rights->societe->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=customers&type=c", $langs->trans("Contacts"), 2, $user->rights->societe->lire);
|
||||
}
|
||||
|
||||
|
||||
@ -9,10 +9,12 @@ MenuNewCompany=New company
|
||||
MenuNewCustomer=New customer
|
||||
MenuNewProspect=New prospect
|
||||
MenuNewSupplier=New supplier
|
||||
MenuNewPrivateIndividual=New private individual
|
||||
MenuSocGroup=Groups
|
||||
NewCompany=New company (prospect, customer, supplier)
|
||||
NewThirdParty=New third party (prospect, customer, supplier)
|
||||
NewSocGroup=Nouveau companies group
|
||||
NewPrivateIndividual=New private individual (prospect, customer, supplier)
|
||||
ProspectionArea=Prospection area
|
||||
SocGroup=Group of companies
|
||||
IdCompany=Company Id
|
||||
|
||||
Loading…
Reference in New Issue
Block a user