CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
You can try the following:
template = self.env['email.template'].search[('name', '=', 'Name of email template'))
if not template:
raise exceptions.Warning("Email template not found!")
Setting force_send to True will immediately send the email, whereas if you set force_send to False, the mail will push to the mail queue and be sent later (30min intervals) by a cron job.
About This Community
Odoo Training Center
|Asked: 7/7/15, 9:01 AM|
|Seen: 643 times|
|Last updated: 7/10/15, 4:53 AM|