- Removed models/injury_models.py and all its references - Converted relational fields to character fields: - body_location_id → body_location - injury_type_id → injury_type - Updated portal templates to use text inputs instead of dropdowns - Updated controller code to process the new field formats - Removed related access rights from security CSV - Modified test files to accommodate the new structure This refactoring simplifies the data model by removing unnecessary classifications that were adding complexity without significant benefit. The direct text fields maintain the same functionality while reducing the database overhead and simplifying the UI.
2.8 KiB
2.8 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_patient_user | User Access for Patients | model_sports_patient | group_sports_clinic_user | 1 | 1 | 1 | 0 |
| 3 | access_patient_treatment_pro | Treatment Professional Access for Patients | model_sports_patient | group_sports_clinic_treatment_professional | 1 | 1 | 1 | 1 |
| 4 | access_patient_admin | Admin Access for Patients | model_sports_patient | group_sports_clinic_admin | 1 | 1 | 1 | 1 |
| 5 | access_patient_portal | Portal Access for Patients | model_sports_patient | base.group_portal | 1 | 1 | 1 | 0 |
| 6 | access_patient_portal_coach | Portal Coach Access for Patients | model_sports_patient | bemade_sports_clinic.group_portal_team_coach | 1 | 1 | 1 | 0 |
| 7 | access_patient_contact_user | User Access for Patient Contacts | model_sports_patient_contact | group_sports_clinic_user | 1 | 1 | 1 | 1 |
| 8 | access_patient_contact_portal_tp | Portal TP Access for Patient Contacts | model_sports_patient_contact | bemade_sports_clinic.group_portal_treatment_professional | 1 | 1 | 1 | 0 |
| 9 | access_injury_treatment_pro | Treatment Professional Access for Injuries | model_sports_patient_injury | group_sports_clinic_treatment_professional | 1 | 1 | 1 | 1 |
| 10 | access_injury_portal | Portal Access for Injuries | model_sports_patient_injury | base.group_portal | 1 | 0 | 0 | 0 |
| 11 | access_team_user | User Access for Teams | model_sports_team | group_sports_clinic_user | 1 | 1 | 1 | 0 |
| 12 | access_team_admin | Admin Access for Teams | model_sports_team | group_sports_clinic_admin | 1 | 1 | 1 | 1 |
| 13 | access_team_portal | Portal Access for Teams | model_sports_team | base.group_portal | 1 | 0 | 0 | 0 |
| 14 | access_team_staff_user | User Access for Team Staff | model_sports_team_staff | group_sports_clinic_user | 1 | 1 | 1 | 1 |
| 15 | access_team_staff_portal | Portal Access for Team Staff | model_sports_team_staff | base.group_portal | 1 | 0 | 0 | 0 |
| 16 | access_team_staff_admin | Admin Access for Team Staff | model_sports_team_staff | group_sports_clinic_admin | 1 | 1 | 1 | 1 |
| 17 | access_treatment_note_user | User Access for Treatment Notes | model_sports_treatment_note | group_sports_clinic_user | 1 | 0 | 0 | 0 |
| 18 | access_treatment_note_treatment_pro | Treatment Professional Access for Treatment Notes | model_sports_treatment_note | group_sports_clinic_treatment_professional | 1 | 1 | 1 | 1 |
| 19 | access_treatment_note_portal | Portal Access for Treatment Notes | model_sports_treatment_note | base.group_portal | 1 | 0 | 0 | 0 |
| 20 | access_treatment_note_admin | Admin Access for Treatment Notes | model_sports_treatment_note | group_sports_clinic_admin | 1 | 1 | 1 | 1 |
| 21 | access_injury_document_user | User Access for Injury Documents | model_sports_injury_document | group_sports_clinic_user | 1 | 1 | 1 | 1 |
| 22 | access_injury_document_treatment_pro | Treatment Professional Access for Injury Documents | model_sports_injury_document | group_sports_clinic_treatment_professional | 1 | 1 | 1 | 1 |
| 23 | access_injury_document_portal | Portal Access for Injury Documents | model_sports_injury_document | base.group_portal | 1 | 0 | 0 | 0 |
| 24 | access_injury_document_admin | Admin Access for Injury Documents | model_sports_injury_document | group_sports_clinic_admin | 1 | 1 | 1 | 1 |