trytond-electronic_mail_template /

Diff from to


 #This file is part electronic_mail_template module for Tryton.
 #The COPYRIGHT file at the top level of this repository contains 
 #the full copyright notices and license terms.
 from email import message_from_string
 from collections import defaultdict
         '''It should be possible to overwrite templates'''
         return True
+    @classmethod
-    def send_mail(self, ids):
-        template_obj = Pool().get('electronic.mail.template')
-        for email_id in ids:
-            template_obj.send_email(email_id)
-        return True
+    def send_mail(self, emails):
+        Template = Pool().get('electronic.mail.template')
+        for email in emails:
+            Template.send_email(email)