diff --git a/helpdesk_mgmt_stage_server_action/models/helpdesk_ticket.py b/helpdesk_mgmt_stage_server_action/models/helpdesk_ticket.py index 4d0da12c93..af39931dc3 100644 --- a/helpdesk_mgmt_stage_server_action/models/helpdesk_ticket.py +++ b/helpdesk_mgmt_stage_server_action/models/helpdesk_ticket.py @@ -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 @@ -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()