Merge pull request #3451 from atm-gauthier/3.8_fix_right_on_asksupplierprice
FIX : on asksupplierprice module, order creation button must be avail…
This commit is contained in:
commit
cda681ac6a
@ -1664,7 +1664,7 @@ if ($action == 'create')
|
||||
|
||||
// Create an order
|
||||
if (! empty($conf->commande->enabled) && $object->statut == 2) {
|
||||
if ($user->rights->commande->creer) {
|
||||
if ($user->rights->fournisseur->commande->creer) {
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/fourn/commande/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid . '">' . $langs->trans("AddOrder") . '</a></div>';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user