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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
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!!
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Oct 23
|
5979 | ||
|
1
Sep 23
|
1968 | ||
|
1
May 23
|
1004 | ||
|
2
Apr 23
|
1378 | ||
|
1
Mar 23
|
996 |