Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2102 Näkymät

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
Hylkää

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 ?

Paras vastaus

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
Hylkää
Tekijä Paras vastaus

thank you

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
kesäk. 24
2618
1
tammik. 24
1224
3
heinäk. 24
5287
0
huhtik. 23
2739
0
maalisk. 25
1489