Commits

Raimon Esteve (Zikzakmedia)  committed e02315b

Subject field translate (ElectronicMail)

  • Participants
  • Parent commits bcc4b96

Comments (0)

Files changed (2)

+* Subject field translate (ElectronicMail)
 * FIX Transaction language set_context
 * Plain and html fields translate 
 * Try/except smtp server connection error
         recepients.extend(split_emails(getattr(email_record, field)))
     return recepients
 
+class ElectronicMail(ModelSQL, ModelView):
+    "E-mail"
+    _name = 'electronic.mail'
+    _description = __doc__
+
+    subject = fields.Char('Subject', translate=True)
+
+ElectronicMail()
 
 class Template(ModelSQL, ModelView):
     'Email Template'