İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2612 Görünümler

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
Vazgeç

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 ?

En İyi Yanıt

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
Vazgeç
Üretici En İyi Yanıt

thank you

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Haz 24
3360
1
Oca 24
1502
3
Tem 24
5684
0
Nis 23
3100
1
Ağu 25
592