Ajout de la permission "consulter tous les clients" dans le module commercial, afin
qu'un commercial puisse voir que les clients qui lui sont affects.
This commit is contained in:
parent
da5a42eef2
commit
0dde8a9a8b
@ -732,8 +732,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
|
||||
|
||||
print '<tr><td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToMyProposals")) . '</td>';
|
||||
|
||||
if (!$user->rights->commercial->client->voir)
|
||||
{
|
||||
print '<td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToOtherProposals")) . '</td>';
|
||||
}
|
||||
|
||||
print '</tr>';
|
||||
|
||||
// Liste de "Mes propals"
|
||||
@ -826,8 +831,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
|
||||
|
||||
print '<tr><td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToMyOrders")) . '</td>';
|
||||
|
||||
if (!$user->rights->commercial->client->voir)
|
||||
{
|
||||
print '<td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToOtherOrders")) . '</td>';
|
||||
}
|
||||
|
||||
print '</tr>';
|
||||
|
||||
// Liste de "Mes commandes"
|
||||
@ -918,8 +928,13 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
|
||||
|
||||
print '<tr><td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToMyBills"));
|
||||
|
||||
if (!$user->rights->commercial->client->voir)
|
||||
{
|
||||
print '</td><td width="50%" valign="top">';
|
||||
print_titre($langs->trans("AddToOtherBills"));
|
||||
}
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
// Liste de Mes factures
|
||||
|
||||
Loading…
Reference in New Issue
Block a user