Hello,
I'm trying to set up a simple automated action that will create a new ticket.
However whenever I run my python code it keeps loading and no ticket is ever created.
I have an automated action set up with the following config:
Base model: ticket
Triggers: not important because of debugging reasons.
Code I've tried:
new_ticket = env['helpdesk.ticket'].create({'name': 'some_name', 'stage_id': stage_id, 'team_id': team_id})
and
new_ticket = env['helpdesk.ticket'].sudo().create({'name': 'some_name', 'stage_id': stage_id, 'team_id': team_id})
This seems to be correct according to documentation but it doesn't work.
Thanks in advance.