Expense report - Hidden button to generate files in create mode
This commit is contained in:
parent
0d5c035034
commit
eef245d23b
@ -2252,7 +2252,7 @@ print '<div class="fichehalfleft">';
|
||||
* Generate documents
|
||||
*/
|
||||
|
||||
if($user->rights->expensereport->export && $action != 'edit')
|
||||
if($user->rights->expensereport->export && $action != 'create' && $action != 'edit')
|
||||
{
|
||||
$filename = dol_sanitizeFileName($object->ref);
|
||||
$filedir = $conf->expensereport->dir_output . "/" . dol_sanitizeFileName($object->ref);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user