diff --git a/sql/data.sql b/sql/data.sql index b8c477a67..ec5c99616 100644 --- a/sql/data.sql +++ b/sql/data.sql @@ -821,18 +821,6 @@ INSERT INTO `llx_c_firepermit_attendants_role` (`rowid`, `entity`, `ref`, `label INSERT INTO `llx_c_firepermit_attendants_role` (`rowid`, `entity`, `ref`, `label`, `description`, `active`, `position`) VALUES(2, 0, 'ExtSocietyResponsible', 'ExtSocietyResponsible', '', 1, 10); INSERT INTO `llx_c_firepermit_attendants_role` (`rowid`, `entity`, `ref`, `label`, `description`, `active`, `position`) VALUES(3, 0, 'ExtSocietyAttendant', 'ExtSocietyAttendant', '', 1, 20); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_CREATE', 'AccidentInvestigationCreated', 'Executed when an accident investigation is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_MODIFY', 'AccidentInvestigationModified', 'Executed when an accident investigation is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_DELETE', 'AccidentInvestigationDeleted', 'Executed when an accident investigation is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_VALIDATE', 'AccidentInvestigationValidate', 'Executed when an accident investigation is validated'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_UNVALIDATE', 'AccidentInvestigationUnValidate', 'Executed when an accident investigation is re-opened'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_ARCHIVE', 'AccidentInvestigationArchive', 'Executed when an accident investigation is archived'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_LOCK', 'AccidentInvestigationLock', 'Executed when an accident investigation is signed'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_IMPORT', 'RiskImport', 'Executed when a risk is imported'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_UNLINK', 'RiskUnlink', 'Executed when a risk is unlinked'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISKSIGN_IMPORT', 'RiskSignImport', 'Executed when a risk sign is imported'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISKSIGN_UNLINK', 'RiskSignUnlink', 'Executed when a risk sign is unlinked'); - INSERT INTO `llx_c_accidentinvestigation_attendants_role` (`rowid`, `entity`, `ref`, `label`, `description`, `active`, `position`) VALUES(1, 0, 'Witness', 'Witness', '', 1, 1); INSERT INTO `llx_c_accidentinvestigation_attendants_role` (`rowid`, `entity`, `ref`, `label`, `description`, `active`, `position`) VALUES(2, 0, 'Investigator', 'Investigator', '', 1, 10); INSERT INTO `llx_c_accidentinvestigation_attendants_role` (`rowid`, `entity`, `ref`, `label`, `description`, `active`, `position`) VALUES(3, 0, 'Rescuer', 'Rescuer', '', 1, 20); @@ -848,20 +836,28 @@ INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, desc INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('listingrisksphoto@digiriskdolibarr', 'LISTINGRISKSPHOTO_GENERATE', 'ListingRisksPhotoGenerated', 'Executed when a listing risks photos is generated'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('listingrisksaction@digiriskdolibarr', 'LISTINGRISKSACTION_GENERATE', 'ListingRisksActionGenerated', 'Executed when a listing risks actions is generated'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessmentdocument@digiriskdolibarr', 'RISKASSESSMENTDOCUMENT_GENERATE', 'RiskAssessmentDocumentGenerated', 'Executed when a risk assessment document is generated'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_CREATE', 'AccidentCreated', 'Executed when an accident is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_MODIFY', 'AccidentModified', 'Executed when an accident is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_DELETE', 'AccidentDeleted', 'Executed when an accident is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_CREATE', 'AccidentWorkStopCreated', 'Executed when an accident workstop is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_MODIFY', 'AccidentWorkStopModified', 'Executed when an accident workstop is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_DELETE', 'AccidentWorkStopDeleted', 'Executed when an accident workstop is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_CREATE', 'AccidentLesionCreated', 'Executed when an accident lesion is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_MODIFY', 'AccidentLesionModified', 'Executed when an accident lesion is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_DELETE', 'AccidentLesionDeleted', 'Executed when an accident lesion is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_CREATE', 'AccidentInvestigationCreated', 'Executed when an accident investigation is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_MODIFY', 'AccidentInvestigationModified', 'Executed when an accident investigation is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_DELETE', 'AccidentInvestigationDeleted', 'Executed when an accident investigation is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_VALIDATE', 'AccidentInvestigationValidate', 'Executed when an accident investigation is validated'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_UNVALIDATE', 'AccidentInvestigationUnValidate', 'Executed when an accident investigation is re-opened'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_ARCHIVE', 'AccidentInvestigationArchive', 'Executed when an accident investigation is archived'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentinvestigation@digiriskdolibarr', 'ACCIDENTINVESTIGATION_LOCK', 'AccidentInvestigationLock', 'Executed when an accident investigation is signed'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digiriskelement@digiriskdolibarr', 'DIGIRISKELEMENT_CREATE', 'DigiriskElementCreated', 'Executed when a digirisk element is created'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digiriskelement@digiriskdolibarr', 'DIGIRISKELEMENT_MODIFY', 'DigiriskElementModified', 'Executed when a digirisk element is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('digiriskelement@digiriskdolibarr', 'DIGIRISKELEMENT_DELETE', 'DigiriskElementDeleted', 'Executed when a digirisk element is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_CREATE', 'PreventionPlanCreated', 'Executed when a prevention plan is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_MODIFY', 'PreventionPlanModified', 'Executed when a prevention plan is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_DELETE', 'PreventionPlanDeleted', 'Executed when a prevention plan is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_INPROGRESS', 'PreventionPlanInProgress', 'Executed when a prevention plan status is in progress'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_PENDINGSIGNATURE', 'PreventionPlanPendingSignature', 'Executed when a prevention plan status is pending signature'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_LOCKED', 'PreventionPlanLocked', 'Executed when a prevention plan is locked'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_ARCHIVED', 'PreventionPlanArchived', 'Executed when a prevention plan is archived'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_CREATE', 'PreventionPlanLineCreated', 'Executed when a prevention plan line is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_MODIFY', 'PreventionPlanLineModified', 'Executed when a prevention plan line is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_DELETE', 'PreventionPlanLineDeleted', 'Executed when a prevention plan line is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_SENTBYMAIL', 'PreventionPlanSentByMail', 'Executed when a prevention plan is sent by mail'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_CREATE', 'EvaluatorCreated', 'Executed when an evaluator is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_MODIFY', 'EvaluatorModified', 'Executed when an evaluator is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_DELETE', 'EvaluatorDeleted', 'Executed when an evaluator is deleted'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_CREATE', 'FirePermitCreated', 'Executed when a fire permit is created'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_MODIFY', 'FirePermitModified', 'Executed when a fire permit is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_DELETE', 'FirePermitDeleted', 'Executed when a fire permit is deleted'); @@ -873,30 +869,33 @@ INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, desc INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITLINE_MODIFY', 'FirePermitLineModified', 'Executed when a fire permit is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMITLINE_DELETE', 'FirePermitLineDeleted', 'Executed when a fire permit is deleted'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('firepermit@digiriskdolibarr', 'FIREPERMIT_SENTBYMAIL', 'FirePermitSentByMail', 'Executed when a fire permit is sent by mail'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_CREATE', 'PreventionPlanCreated', 'Executed when a prevention plan is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_MODIFY', 'PreventionPlanModified', 'Executed when a prevention plan is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_DELETE', 'PreventionPlanDeleted', 'Executed when a prevention plan is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_INPROGRESS', 'PreventionPlanInProgress', 'Executed when a prevention plan status is in progress'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_PENDINGSIGNATURE', 'PreventionPlanPendingSignature', 'Executed when a prevention plan status is pending signature'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_LOCKED', 'PreventionPlanLocked', 'Executed when a prevention plan is locked'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_ARCHIVED', 'PreventionPlanArchived', 'Executed when a prevention plan is archived'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_CREATE', 'PreventionPlanLineCreated', 'Executed when a prevention plan line is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_MODIFY', 'PreventionPlanLineModified', 'Executed when a prevention plan line is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLANLINE_DELETE', 'PreventionPlanLineDeleted', 'Executed when a prevention plan line is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('preventionplan@digiriskdolibarr', 'PREVENTIONPLAN_SENTBYMAIL', 'PreventionPlanSentByMail', 'Executed when a prevention plan is sent by mail'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_CREATE', 'RiskCreated', 'Executed when a risk is created'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_MODIFY', 'RiskModified', 'Executed when a risk is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_DELETE', 'RiskDeleted', 'Executed when a risk is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_CREATE', 'RiskAssessmentCreated', 'Executed when a risk assessment is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_MODIFY', 'RiskAssessmentModified', 'Executed when a risk assessment is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_DELETE', 'RiskAssessmentDeleted', 'Executed when a risk assessment is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_IMPORT', 'RiskImport', 'Executed when a risk is imported'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risk@digiriskdolibarr', 'RISK_UNLINK', 'RiskUnlink', 'Executed when a risk is unlinked'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risksign@digiriskdolibarr', 'RISKSIGN_CREATE', 'RiskSignCreated', 'Executed when a risk sign is created'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risksign@digiriskdolibarr', 'RISKSIGN_MODIFY', 'RiskSignModified', 'Executed when a risk sign is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risksign@digiriskdolibarr', 'RISKSIGN_DELETE', 'RiskSignDeleted', 'Executed when a risk sign is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_CREATE', 'EvaluatorCreated', 'Executed when an evaluator is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_MODIFY', 'EvaluatorModified', 'Executed when an evaluator is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('evaluator@digiriskdolibarr', 'EVALUATOR_DELETE', 'EvaluatorDeleted', 'Executed when an evaluator is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_CREATE', 'AccidentCreated', 'Executed when an accident is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_MODIFY', 'AccidentModified', 'Executed when an accident is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accident@digiriskdolibarr', 'ACCIDENT_DELETE', 'AccidentDeleted', 'Executed when an accident is deleted'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risksign@digiriskdolibarr', 'RISKSIGN_IMPORT', 'RiskSignImport', 'Executed when a risk sign is imported'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('risksign@digiriskdolibarr', 'RISKSIGN_UNLINK', 'RiskSignUnlink', 'Executed when a risk sign is unlinked'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_CREATE', 'RiskAssessmentCreated', 'Executed when a risk assessment is created'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_MODIFY', 'RiskAssessmentModified', 'Executed when a risk assessment is modified'); +INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('riskassessment@digiriskdolibarr', 'RISKASSESSMENT_DELETE', 'RiskAssessmentDeleted', 'Executed when a risk assessment is deleted'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_CREATE', 'TaskCreatedEvent', 'Executed when a task is created in digirisk'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_MODIFY', 'TaskModifiedEvent', 'Executed when a task is modified in digirisk'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_DELETE', 'TaskDeletedEvent', 'Executed when a task is deleted in digirisk'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_TIMESPENT_CREATE', 'TaskTimeSpentCreated', 'Executed when a task timespent is created'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_TIMESPENT_MODIFY', 'TaskTimeSpentModified', 'Executed when a task timespent is modified'); INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('task@digiriskdolibarr', 'TASK_TIMESPENT_DELETE', 'TaskTimeSpentDeleted', 'Executed when a task timespent is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_CREATE', 'AccidentWorkStopCreated', 'Executed when an accident workstop is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_MODIFY', 'AccidentWorkStopModified', 'Executed when an accident workstop is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentworkstop@digiriskdolibarr', 'ACCIDENTWORKSTOP_DELETE', 'AccidentWorkStopDeleted', 'Executed when an accident workstop is deleted'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_CREATE', 'AccidentLesionCreated', 'Executed when an accident lesion is created'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_MODIFY', 'AccidentLesionModified', 'Executed when an accident lesion is modified'); -INSERT INTO llx_c_digiriskdolibarr_action_trigger (elementtype, ref, label, description) VALUES ('accidentlesion@digiriskdolibarr', 'ACCIDENTLESION_DELETE', 'AccidentLesionDeleted', 'Executed when an accident lesion is deleted');