Skip to Content
Menu
This question has been flagged
2 Replies
2381 Views

I have created an email template and method to call that email template and can succesfully send email to 1 email address specified in email_to field. Now i want to send email to all the users created from the user using the same template. How can i do that please help me its urgent.Pz Plz

Avatar
Discard
Best Answer

Hello @Riyan


add reply_all Function in your model. and return an email address.


@api.model

def reply_all(self, res_ids, default=None):

record = self.sudo().browse(res_ids)

reply_to = record.create_uid.email

return {res_ids[0]: reply_to}


This solution might work.

Can you please mark this as resolved, if you are satisfied with my answer.

Avatar
Discard
Author Best Answer

hellow @Aktiv

Thanks for your answer it worked but it takes only one email of admin not all but i want to send email to all the users and send the email at once. what is res_ids and from where its getting the value. How to do it please help!!

Avatar
Discard
Related Posts Replies Views Activity
3
Oct 23
5979
1
Sep 23
1968
1
May 23
1004
2
Apr 23
1378
1
Mar 23
996