Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
9405ce335e
@ -2516,7 +2516,7 @@ elseif (! empty($object->id))
|
||||
}
|
||||
|
||||
// Delete
|
||||
if ($user->rights->fournisseur->commande->supprimer)
|
||||
if (! empty($user->rights->fournisseur->commande->supprimer) || ($object->statut == CommandeFournisseur::STATUS_DRAFT && ! empty($user->rights->fournisseur->commande->creer)))
|
||||
{
|
||||
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||
}
|
||||
|
||||
@ -434,7 +434,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=presend&mode=init#formmailbeforetitle">' . $langs->trans('SendMail') . '</a>'."\n";
|
||||
|
||||
// Modify
|
||||
if ($user->rights->mymodule->write)
|
||||
if (! empty($user->rights->mymodule->write))
|
||||
{
|
||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=edit">'.$langs->trans("Modify").'</a>'."\n";
|
||||
}
|
||||
@ -444,7 +444,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
}
|
||||
|
||||
// Clone
|
||||
if ($user->rights->mymodule->write)
|
||||
if (! empty($user->rights->mymodule->write))
|
||||
{
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $object->socid . '&action=clone&object=order">' . $langs->trans("ToClone") . '</a></div>';
|
||||
}
|
||||
@ -463,7 +463,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
}
|
||||
*/
|
||||
|
||||
if ($user->rights->mymodule->delete)
|
||||
// Delete (need delete permission, or if draft, just need create/modify permission)
|
||||
if (! empty($user->rights->mymodule->delete) || (! empty($object->fields['status']) && $object->status == $object::STATUS_DRAFT && ! empty($user->rights->mymodule->write)))
|
||||
{
|
||||
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete">'.$langs->trans('Delete').'</a>'."\n";
|
||||
}
|
||||
|
||||
@ -1353,7 +1353,7 @@ img.photorefnoborder {
|
||||
}
|
||||
.trextrafieldseparator td {
|
||||
/* border-bottom: 2px solid rgb(<?php echo $colorbackhmenu1 ?>) !important; */
|
||||
border-bottom: 2px solid rgb(<?php echo $colortopbordertitle1 ?>) !important;
|
||||
border-bottom: 2px dashed rgb(<?php echo $colortopbordertitle1 ?>) !important;
|
||||
}
|
||||
|
||||
.tdhrthin {
|
||||
|
||||
@ -1562,6 +1562,10 @@ img.photorefnoborder {
|
||||
.underbanner {
|
||||
border-bottom: <?php echo $borderwidth; ?>px solid rgb(<?php echo $colortopbordertitle1 ?>);
|
||||
}
|
||||
|
||||
.trextrafieldseparator td {
|
||||
border-bottom: 1px solid rgb(<?php echo $colortopbordertitle1 ?>) !important;
|
||||
}
|
||||
.tdhrthin {
|
||||
margin: 0;
|
||||
padding-bottom: 0 !important;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user