fix url for pager on my_team page
This commit is contained in:
parent
5beff7c39e
commit
386797cb1e
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class TeamStaffPortal(CustomerPortal):
|
||||||
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', total=players_count, page=page, step=10,
|
pgr = pager(url=f'/my/team', total=players_count, page=page, step=10,
|
||||||
scope=5)
|
scope=5, url_args={'team_id': team_id})
|
||||||
players = http.request.env['sports.patient'].search([
|
players = http.request.env['sports.patient'].search([
|
||||||
('team_ids', 'in', team_id),
|
('team_ids', 'in', team_id),
|
||||||
], offset=pgr['offset'], limit=players_count)
|
], offset=pgr['offset'], limit=players_count)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue