bemade-addons/bemade_sports_clinic/views
Denis Durepos 3ce8d051bc portal: enable player removal from Edit Player view; fix QWeb group checks
- Replace nested remove form with a submit button using HTML5 formaction to post directly to /my/team/{team_id}/player/{player_id}/remove
- Prevent outer save form from intercepting submission; preserves CSRF; confirmation retained; redirects to team page
- Replace user_has_group helper with request.env.user.has_group in QWeb to prevent NoneType callable errors

Verification:
- Edit Player page renders without 500 error
- Clicking Remove removes the player and returns 303 redirect to /my/team/{team_id}
- Success notification displayed on team page

Notes:
- Removal route already implemented in controller (TeamManagementPortal.portal_remove_player)
2025-08-13 10:43:39 -04:00
..
events_portal_templates.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
injury_management_portal_templates.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
player_management_portal_templates.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
portal_activity_detail_template.xml feat: Add assignee display and reassignment functionality to activity views 2025-07-29 15:44:09 -04:00
portal_attachments_template.xml feat: Add assignee display and reassignment functionality to activity views 2025-07-29 15:44:09 -04:00
portal_event_detail_template.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
portal_event_edit_template.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
portal_messages_template.xml feat: Add assignee display and reassignment functionality to activity views 2025-07-29 15:44:09 -04:00
project_task_security_test_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
project_task_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
res_partner_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
res_users_views.xml [REF] bemade_sports_clinic: Remove injury models and simplify data model 2025-07-16 11:37:50 -04:00
sports_clinic_menus.xml Created portal views for therapists and Report Injury functionality for portal users (coaches and therapists). 2025-06-21 21:24:50 -04:00
sports_clinic_portal_views.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
sports_event_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
sports_patient_injury_portal.xml Corrected function of N/A field on injury edit and created portal templates. 2025-08-12 20:30:22 -04:00
sports_patient_injury_views.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
sports_patient_views.xml portal: enable player removal from Edit Player view; fix QWeb group checks 2025-08-13 10:43:39 -04:00
sports_team_views.xml Created portal views for therapists and Report Injury functionality for portal users (coaches and therapists). 2025-06-21 21:24:50 -04:00
task_management_portal_templates.xml feat: Add assignee display and reassignment functionality to activity views 2025-07-29 15:44:09 -04:00
task_to_event_wizard_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00
treatment_note_views.xml feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management 2025-08-12 09:23:05 -04:00