title: send an email and raise message error when an error occurs in odoo v8
body: <p>I want to get an email when ther is an error and raise a mesage error.</p>
  
  <pre><code>    from openerp import models, fields, api, _
      from openerp.exceptions import ValidationError
      from datetime import datetime
  </code></pre>
  
  <p>So, to send and email, I created the template in this function :</p>
  
  <pre><code>    @api.model
      def email_template(self):
         template_obj = self.env['email.template']
         model = self.env['ir.model'].search([('model', '=', 'sync.synchro.partner')])[0]
         company= self.env['res.company'].search([])[0]
         body_html = '''Synchronization Error'''
         synchronise_erreur_template = {
                                 'model_id': model.id,
                                 'name': 'Erreur Technique',
                                 'subject' : 'Erreur produite lors de Synchronisation des contacts',
                                 'body_html': body_html,
                                 'email_from' : company.email or '${object.employee_id.work_email}',
                                 'email_to' : 'tech@example.com',
                                  }
  </code></pre>
  
  <p>And I call it when an error occurs </p>
  
  <pre><code>    @api.multi
      def schedule_synchro(self):
          remote_partners = self.env['res.partner']
          template_obj = self.pool['email.template']
          records = self.env['sync.synchro.partner'].search([])
          for record in records :
              if record.model_name == 'partners':
                  try: 
                      remote_partners.export2remote([record.local_id])
                      record.unlink()
                  except (Warning) as exc:
                      template_obj.send_mail(self.env.cr, self.env.uid,
                           synchro_partner.synchronise_erreur_template.id, 
                           synchro_partner.id, force_send=True,context=self.env.context)
                      raise except_orm('Couldn t Transfer partner to remote database')
  </code></pre>
  
  <p>But even when an error occurs, I don't get an E-mail or a message error</p>