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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 9 25
|
378 | ||
|
1
thg 2 24
|
4833 | ||
|
2
thg 4 25
|
2609 | ||
|
2
thg 9 25
|
2123 | ||
|
0
thg 11 19
|
3192 |