Commit graph

3 commits

Author SHA1 Message Date
Denis Durepos
82266644ca Portal UI enhancements: injury form improvements, coach ACL fixes, and color scheme updates
- Updated injury form fields and layout for portal consistency
- Removed team field from portal injury forms and made debug-only in internal views
- Fixed injury list color scheme (unverified=yellow, active=red) and added clickable links for treatment professionals
- Added comprehensive ACL permissions for coaches: res.partner, sports.patient.injury, mail.followers, mail.template
- Added record rule for coaches to access partner records
- Improved patient injury table in portal: role-based column visibility and navigation
- Enhanced status field color coding with Bootstrap text classes
- Added save/cancel buttons at top and bottom of edit forms
- Moved external notes field to end of injury detail form for better workflow
2025-07-27 15:08:08 -04:00
Denis Durepos
c0834eb327 [REF] bemade_sports_clinic: Remove injury models and simplify data model
- 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.
2025-07-16 11:37:50 -04:00
Denis Durepos
ca57ec8f16 [IMP] bemade_sports_clinic: Refactor portal views and enhance treatment notes
- Refactor portal templates to eliminate intra-module template inheritance
- Integrate emergency contacts section into player injuries template
- Add full internal admin views for treatment notes with chatter support
- Fix ORM warning in test_rights by using proper ORM commands
- Update manifest to reflect new functionality (v18.0.1.9.0)

This refactoring improves template stability by removing XPath errors and
provides treatment professionals with better access to emergency contacts
and treatment notes both in portal and backend interfaces.
2025-07-11 21:47:50 -04:00