feat: add Actions tab on AccidentInvestigation (curative/corrective subtasks)#4757
Open
elisa34 wants to merge 1 commit into
Open
feat: add Actions tab on AccidentInvestigation (curative/corrective subtasks)#4757elisa34 wants to merge 1 commit into
elisa34 wants to merge 1 commit into
Conversation
…ve subtasks
- Add digirisk_action_type select extrafield on projet_task (position 60)
to distinguish curative (1) vs corrective (2) actions
- Set extrafield on T1/T2 task creation in accidentinvestigation_card.php
- SQL migration: backfill digirisk_action_type from existing T1/T2 task labels
- New accidentinvestigation_actions.php tab (key 15, between attendants and note):
- Two sections (curative / corrective) with inline add-form (label, deadline,
assignee via native Dolibarr selectors, progress input)
- Checkbox to close action (progress=100), inline progress update
- Status rendered via Task::LibStatut(4), progress bar via native CSS classes
- Helper getAccidentInvestigationActionsByType() in lib with correlated subquery
for TASKEXECUTIVE assignee (avoids N+1)
- Add en_US lang file; extend fr_FR with action-tab translation keys
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
digirisk_action_typeselect extrafield onprojet_taskto distinguish curative (1) vs corrective (2) actionsaccidentinvestigation_card.phpselectDate()andselect_dolusers()Task::LibStatut(4)(native Dolibarr badge)progress sm/progress-bar-info/success)getAccidentInvestigationActionsByType()with correlated subquery for TASKEXECUTIVE assigneelangs/en_US/digiriskdolibarr.lang; extendfr_FRwith all action-tab keysTest plan
digirisk_action_type1 and 2?? Generated with Claude Code