- 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)
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| access_control_mixin.py | ||
| events_portal.py | ||
| patient_injury_portal.py | ||
| player_management_portal.py | ||
| task_management_portal.py | ||
| team_management_portal.py | ||
| team_staff_portal.py | ||