Skip to content

Commit

Permalink
[FIX] helpdesk_mgmt: dependency of the compute method
Browse files Browse the repository at this point in the history
The computed method for the stage date only depends on the required attributes, not the whole
object.
  • Loading branch information
cristina-domatix committed Aug 5, 2020
1 parent e5eefd0 commit ff3803f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpdesk_mgmt/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ def _read_group_stage_ids(self, stages, domain, order):
string="Next stage date", compute="_compute_next_stage"
)

@api.depends("stage_id")
@api.depends(
"stage_id.auto_next_number",
"stage_id.auto_next_type",
"stage_id.auto_next_stage_id",
)
def _compute_next_stage(self):
for record in self:
if (
Expand Down

0 comments on commit ff3803f

Please sign in to comment.