fix url for pager on my_team page

This commit is contained in:
Marc Durepos 2023-11-21 06:38:36 -05:00
parent 814841943f
commit 5beff7c39e

View file

@ -55,7 +55,7 @@ class TeamStaffPortal(CustomerPortal):
if not team: if not team:
raise UserError(_('This team could not be found.')) raise UserError(_('This team could not be found.'))
players_count = team.player_count players_count = team.player_count
pgr = pager(url=f'/my/team?team_id={team_id}', total=players_count, page=page, step=10, pgr = pager(url=f'/my/team', total=players_count, page=page, step=10,
scope=5) scope=5)
players = http.request.env['sports.patient'].search([ players = http.request.env['sports.patient'].search([
('team_ids', 'in', team_id), ('team_ids', 'in', team_id),