Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang

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 ?

Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

thank you

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jun 24
2644
1
Jan 24
1232
3
Jul 24
5293
0
Apr 23
2752
0
Mar 25
1511