Because button are reserved for action on workflow, i comment this to not break consistency of position of feature. I will think to a better place...

This commit is contained in:
Laurent Destailleur 2022-07-07 21:20:09 +02:00 committed by GitHub
parent 1e1be459b3
commit 2ffdb19bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1281,6 +1281,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
}
// Accounting Report
/*
$accouting_module_activated = !empty($conf->comptabilite->enabled) || !empty($conf->accounting->enabled);
if ($accouting_module_activated && $object->statut != Project::STATUS_DRAFT) {
$start = dol_getdate((int) $object->date_start);
@ -1290,7 +1291,8 @@ if ($action == 'create' && $user->rights->projet->creer) {
if (!empty($object->date_end)) $url .= '&date_stopday='.$end['mday'].'&date_stopmonth='.$end['mon'].'&date_stopyear='.$end['year'];
print dolGetButtonAction('', $langs->trans('ExportAccountingReportButtonLabel'), 'default', $url, '');
}
*/
// Modify
if ($object->statut != Project::STATUS_CLOSED && $user->rights->projet->creer) {
if ($userWrite > 0) {