Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5074 Представления

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?

Аватар
Отменить
Лучший ответ

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.

Related Posts Ответы Просмотры Активность
2
сент. 25
165
1
февр. 24
4603
2
апр. 25
2345
2
сент. 25
1839
0
нояб. 19
3062