ช่วยเหลือ

0

[ODOO 11]: Creating new ticket from automated action not working

Avatar
Tom Roels

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.

Avatar
Discard
1 Answer
0
Avatar
Tom Roels
Best Answer

My request went out twice everytime clogging the server I think.

This can be closed but I don't know how.

Avatar
Discard