Merge pull request #21571 from bb2a/FIX---Right-orders-list

FIX - Warnning Right orders list
This commit is contained in:
Laurent Destailleur 2022-07-25 19:35:54 +02:00 committed by GitHub
commit 6dfa4ff141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1217,7 +1217,7 @@ if ($resql) {
if ($permissiontocancel) {
$arrayofmassactions['cancelorders'] = img_picto('', 'close_title', 'class="pictofixedwidth"').$langs->trans("Cancel");
}
if ($user->rights->facture->creer) {
if (!empty($conf->invoice->enabled) && $user->rights->facture->creer) {
$arrayofmassactions['createbills'] = img_picto('', 'bill', 'class="pictofixedwidth"').$langs->trans("CreateInvoiceForThisCustomer");
}
if ($permissiontoclose) {