mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
New functionality for add cronjob (#28282)
This commit is contained in:
committed by
GitHub
parent
009c93f75a
commit
2c8a2e5f61
@@ -133,7 +133,20 @@ class modProjet extends DolibarrModules
|
||||
3=>array('file'=>'box_validated_projects.php', 'enabledbydefaulton'=>'Home'), // task without timespent
|
||||
4=>array('file'=>'box_funnel_of_prospection.php', 'enabledbydefaulton'=>'Home'),
|
||||
);
|
||||
|
||||
// Cronjobs
|
||||
$this->cronjobs[] = array(
|
||||
'label' => 'WeeklyWorkingHoursReport',
|
||||
'jobtype' => 'method',
|
||||
'class' => 'projet/class/project.class.php',
|
||||
'objectname' => 'Project',
|
||||
'method' => 'createWeeklyReport',
|
||||
'parameters' => '',
|
||||
'comment' => 'Generates and sends a weekly report on time worked',
|
||||
'frequency' => 1,
|
||||
'unitfrequency' => 86400 * 7,
|
||||
'status' => 0,
|
||||
'test' => '$conf->projet->enabled',
|
||||
);
|
||||
// Permissions
|
||||
$this->rights = array();
|
||||
$this->rights_class = 'projet';
|
||||
|
||||
Reference in New Issue
Block a user