Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
1974 Visninger

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
Kassér

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 ?

Bedste svar

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
Kassér
Forfatter Bedste svar

thank you

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
jun. 24
2473
1
jan. 24
1155
3
jul. 24
5163
0
apr. 23
2670
0
mar. 25
1314