[FIX] edi: do not force send EDI notification, wait for mail scheduler

bzr revid: odo@openerp.com-20111105140059-1g2d6rfzf1um6m66
This commit is contained in:
Olivier Dony
2011-11-05 15:00:59 +01:00
parent 3d0fb53907
commit 9f121848f2
+1 -1
View File
@@ -475,7 +475,7 @@ class EDIMixin(object):
edi_token = self.pool.get('edi.document').export_edi(local_cr, uid, [edi_record], context = context)[0]
edi_context = dict(context, edi_web_url_view=EDI_VIEW_WEB_URL % (web_root_url, local_cr.dbname, edi_token))
self.pool.get('email.template').send_mail(local_cr, uid, mail_tmpl.id, edi_record.id,
force_send=True, context=edi_context)
force_send=False, context=edi_context)
_logger.info('EDI export successful for %s #%s, email notification sent.', self._name, edi_record.id)
except Exception:
_logger.warning('Ignoring EDI mail notification, failed to generate it.', exc_info=True)