Skip to Content
Menu
This question has been flagged
2 Replies
4085 Views

Hi, I'm using issue tracking on odoo 10,

I use issue tracking module and set up incoming email to create new issue,

if new issue created, odoo will add email sender and cc as follower, but only if the email already recorded as user or contact in odoo,

but if incoming email have not recorded, when I click on "new message", there will be a check box with text :  "add as recipient and followers (reason : customer email)",
If i send message with box checked, odoo will add email address to contact and add it as follower of that issue.


what I want to ask is, how to add new email sender as follower and contact automatically?

email sender and email cc.


please help, thank you

Avatar
Discard
Best Answer

Hello Hendra, you can add a follower automatically by doing the following: Go to settings, technical, automated actions and create a new one. Specify the model you need to add this user as a follower, change the action to "Add Followers" and then add the users you need. Hope this helps

Avatar
Discard
Best Answer

Hello Hendra,


For adding followers in CC as recipient you need to inherit get_mail_values() method of mail.compose.message object and Update below values:


mail_values = {

                'subject': self.subject,

                'body': self.body or '',

                'parent_id': self.parent_id and self.parent_id.id,

                'partner_ids': [partner.id for partner in self.partner_ids],

                'attachment_ids': [attach.id for attach in self.attachment_ids],

                'author_id': self.author_id.id,

                'email_from': self.email_from,

                'record_name': self.record_name,

                'no_auto_thread': self.no_auto_thread,

                'mail_server_id': self.mail_server_id.id, 

            }

Via adding cc list value in this dictionary.

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Discard
Author

Thank you,but will it add cc to contact and add them in follower?

Author

I mean, I want to add it as follower of the disscussion, can I do that automatically?

Author

Hi Jainesh Shah, thank you so much for answering, but I think I ask wrong question, so I edit my question.

what I want to ask is how to add new sender email as contact and follower(please refer to my edited question), hope you know something that can lead to solve my problem,thank you so much