Skip to content

Commit

Permalink
[FIX][17.0] helpdesk_mgmt_stage_server_action: Fix context when calli…
Browse files Browse the repository at this point in the history
…ng server action

Because depending of where you provides into the UI, the `active_id` or `active_ids` can be already set.
  • Loading branch information
jcoux authored Dec 5, 2024
1 parent 193597c commit d155810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpdesk_mgmt_stage_server_action/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def create(self, vals_list):
context = {
"active_model": self._name,
"active_id": record.id,
"active_ids": records.ids,
}
action.with_context(**context).run()
return records
Expand All @@ -33,6 +34,7 @@ def write(self, vals):
if action:
context = {
"active_model": self._name,
"active_id": records.id,
"active_ids": records.ids,
}
action.with_context(**context).run()
Expand Down

0 comments on commit d155810

Please sign in to comment.