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

Hello to all,


we would like to realize the following in odoo online latest version

If a agent is answering to the customer, the stage should be changed automatically.

If the customer replies, the stage should be changed automatically.

The "Update Record" to change the stage is working fine, but we are not able to find the right "watch fields" for the following:

-> mail from customer
-> mail to customer

Thanks in advance
Fabian

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

have a look at the mail.message model

the identifier fields are Type and Subtype, and Related Document model

mail from customer : Type: Email, SubType Discussions, Related: helpdesk.ticket

Domain: ["&","&",["message_type","=","email"],["model","=","helpdesk.ticket"],["author_id.user_ids","=",False]]

mail to followers (more than customer): Type: Comment, SubType Discussions, Related: helpdesk.ticket

from that you can add python code with an automated action to change the helpdesk stage, something like.

env['helpdesk.ticket'].search([('id','=',record.res_id)]).write ({'stage_id': 5})
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Sebastien

I'm new on odoo system and I saw your response from this thread

The python code that you send change the ticket stage, but how i detec when the email discussion its changed?

อวตาร
ละทิ้ง