Skip to Content
Menú
This question has been flagged

Hello

with automated actions I want create a ticket helpdesk.

for the moment I create the ticket with the good trigger but I want link the customer of the ticket to the contact

can you help me?


Avatar
Descartar

Hi, can you post an English image or describe more about your use case when you want to create ticket please it that when a partner have been create ?

Best Answer

Hello, 

You need to run the python code in place of create record. 

x = env['res.partner'].browse(record.id)

env['helpdesk.ticket'].create({'name':'Test','partner_id':x.id})


Thanks

Avatar
Descartar
Autor Best Answer

thank you

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de juny 24
2686
1
de gen. 24
1262
3
de jul. 24
5326
0
d’abr. 23
2782
0
de març 25
1554