Skip to content

Commit

Permalink
Merge pull request #1 from jcoux/patch-1
Browse files Browse the repository at this point in the history
[FIX][17.0] helpdesk_mgmt_stage_server_action: Fix context when calling server action
  • Loading branch information
yankinmax authored Dec 5, 2024
2 parents 193597c + d155810 commit a4f65d6
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 a4f65d6

Please sign in to comment.