Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4996 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 24
4543
2
kwi 25
2178
2
cze 25
1672
0
lis 19
3009
8
lut 17
14975