コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
6157 ビュー

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?

アバター
破棄