I am using Odoo 12 CE. Now, I want to set the record follower as Email CC. Currently, what happen that If I have 3 followers in Purchase Order and when I am going to send this Purchase via email, all those 3 followers notified with email individually. But, I want that all these three followers will set as Email CC of actual email. Is this possible using configuration? or I need to write code for this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
if you find this answer helpful, please give me a thumbs up vote.
Tried this but not working
Does this work? We also need this functionality and it’s surprising there isn’t a configurable option to do so.