bemade-addons/bemade_sports_clinic/controllers
Denis Durepos a8aa7e71c2 fix: resolve portal emergency contact field reference errors and ACL issues
- Fix KeyError: 'relationship' by updating all controller methods to use 'contact_type' field
- Fix AttributeError: 'phone' by changing template references to use 'mobile' field
- Remove references to non-existent fields (email, notes) from emergency contact forms
- Fix XML syntax errors in emergency contact templates
- Grant create/write permissions to portal treatment professionals on res.partner model
- Update patient notes button URL from /my/patient/notes to /my/injury/notes
- Fix emergency contact form validation and field assignments in controllers
- Ensure all field references match actual sports.patient.contact model schema

Resolves portal 500 errors when viewing player details and managing emergency contacts.
Therapists can now successfully add/edit emergency contacts without field reference errors.
2025-07-23 18:45:35 -04:00
..
__init__.py [IMP] bemade_sports_clinic: Refactor portal views and enhance treatment notes 2025-07-11 21:47:50 -04:00
patient_injury_portal.py fix: achieve zero failing tests and full compliance in bemade_sports_clinic 2025-07-23 07:08:49 -04:00
player_management_portal.py fix: resolve portal emergency contact field reference errors and ACL issues 2025-07-23 18:45:35 -04:00
task_management_portal.py fix: achieve zero failing tests and full compliance in bemade_sports_clinic 2025-07-23 07:08:49 -04:00
team_management_portal.py feat: Implement comprehensive ACL and RPC security fixes 2025-07-22 21:07:51 -04:00
team_staff_portal.py feat: Implement comprehensive ACL and RPC security fixes 2025-07-22 21:07:51 -04:00