Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2104 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ

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 ?

Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

thank you

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 24
2621
1
thg 1 24
1227
3
thg 7 24
5288
0
thg 4 23
2741
0
thg 3 25
1494