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
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
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.
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
2月 24
|
4431 | ||
|
2
4月 25
|
1940 | ||
|
2
6月 25
|
1426 | ||
|
0
11月 19
|
2905 | ||
|
8
2月 17
|
14737 |