Skip to content

Commit

Permalink
#125 [AdminConf] add: after project creation create more tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jan 26, 2023
1 parent 020168f commit 8843b7c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions admin/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,36 @@
$task->date_c = dol_now();
$task->create($user);

$task->fk_project = $result;
$task->ref = $modTask->getNextValue('InternalMeeting', null);;
$task->label = $langs->transnoentities('InternalMeeting');
$task->date_c = dol_now();
$task->create($user);

$task->fk_project = $result;
$task->ref = $modTask->getNextValue('', null);;
$task->label = $langs->trans('InternalTraining');
$task->date_c = dol_now();
$task->create($user);

$task->fk_project = $result;
$task->ref = $modTask->getNextValue('', null);;
$task->label = $langs->trans('ExternalTraining');
$task->date_c = dol_now();
$task->create($user);

$task->fk_project = $result;
$task->ref = $modTask->getNextValue('', null);;
$task->label = $langs->transnoentities('OvertimeHours');
$task->date_c = dol_now();
$task->create($user);

$task->fk_project = $result;
$task->ref = $modTask->getNextValue('', null);;
$task->label = $langs->trans('Miscellaneous');
$task->date_c = dol_now();
$task->create($user);

$taskarray = $task->getTasksArray(0, 0, $result);

if (!empty($allusers) && is_array($allusers)) {
Expand Down
6 changes: 5 additions & 1 deletion langs/fr_FR/dolisirh.lang
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ Holidays = Congés
PaidHolidays = Congés payés
SickLeave = Congés maladie
PublicHoliday = Jour férié
AdditionalHour = Heure supplémentaire
OvertimeHours = Heure supplémentaire
InternalMeeting = Réunion interne
InternalTraining = Formation interne
ExternalTraining = Formation externe
Miscellaneous = Divers
TooMuchTimeSpent = Vous avez pointé plus de temps que le temps non pointé disponible
TimeSpending = Pointage de temps
HumanResources = Ressources humaines
Expand Down

0 comments on commit 8843b7c

Please sign in to comment.