Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2123 มุมมอง

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?


อวตาร
ละทิ้ง

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 ?

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

thank you

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 24
2647
1
ม.ค. 24
1232
3
ก.ค. 24
5294
0
เม.ย. 23
2753
0
มี.ค. 25
1515