- 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 | ||
| injury_document.py | ||
| mail_followers.py | ||
| patient.py | ||
| patient_contact.py | ||
| patient_injury.py | ||
| project_project.py | ||
| project_task.py | ||
| project_task_security_test.py | ||
| res_partner.py | ||
| res_users.py | ||
| sports_event.py | ||
| sports_team.py | ||
| treatment_note.py | ||