Skip to content

Commit

Permalink
[FIX] helpdesk_mgmt_activity: _compute_next_stage_id method is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
geomer198 committed Dec 6, 2024
1 parent f56a65f commit faad8f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpdesk_mgmt_activity/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ def _compute_is_new_stage(self):
def _compute_next_stage_id(self):
"""Compute next stage for ticket"""
team_stages = self._get_team_stages(self.team_id)
helpdesk_ticket_stage_obj = self.env["helpdesk.ticket.stage"]
for record in self:
current_stage = record.stage_id
stages = team_stages.get(
record.team_id.id, self.env["helpdesk.ticket.stage"]
)
stages = team_stages.get(record.team_id.id, helpdesk_ticket_stage_obj)
next_stage = (
stages.filtered(
lambda stage, _cur_stage=current_stage: stage.sequence
Expand Down

0 comments on commit faad8f5

Please sign in to comment.